notionparallax / ShadowWolf

A mini ERP type app to capture people, projects and their relationships.
GNU General Public License v2.0
1 stars 6 forks source link

OAF sends 500s in some cases, specifically when `from_hash` is passed nil or an empty list #777

Closed Dawil closed 9 years ago

Dawil commented 9 years ago

Example stack trace from commit 36fed0bc5c42be579ca52fca2c1d5da9e8c6c22d:

NoMethodError - undefined method `[]' for nil:NilClass:
        /oaf/app/models.rb:18:in `from_hash'
        /oaf/app/core.rb:46:in `from_json'
        /oaf/app/data_sources.rb:75:in `get'
        /oaf/app/data_sources.rb:26:in `get'
        /oaf/app/controller.rb:12:in `block in <class:OAF>'