EventideSystems / tool_for_systemic_change

GNU Affero General Public License v3.0
6 stars 0 forks source link

NoMethodError: undefined method `downcase' for nil:NilClass #315

Closed ferrisoxide closed 6 years ago

ferrisoxide commented 6 years ago

View details in Rollbar: https://rollbar.com/stark-fortress-62786/stark-fortress-62786/items/13/



NoMethodError: undefined method `downcase' for nil:NilClass
  File "/app/app/models/initiatives/import.rb", line 89, in find_scorecard_by_name
  File "/app/app/models/initiatives/import.rb", line 22, in block in process
  File "/app/app/models/initiatives/import.rb", line 18, in each
  File "/app/app/models/initiatives/import.rb", line 18, in with_index
  File "/app/app/models/initiatives/import.rb", line 18, in process
  File "/app/app/controllers/initiatives/imports_controller.rb", line 23, in block in create
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/action_controller/metal/mime_responds.rb", line 195, in respond_to
  File "/app/app/controllers/initiatives/imports_controller.rb", line 22, in create
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/action_controller/metal/basic_implicit_render.rb", line 4, in send_action
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/abstract_controller/base.rb", line 188, in process_action
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/action_controller/metal/rendering.rb", line 30, in process_action
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/abstract_controller/callbacks.rb", line 20, in block in process_action
  File "/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.6/lib/active_support/callbacks.rb", line 126, in call
  File "/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.6/lib/active_support/callbacks.rb", line 506, in block (2 levels) in compile
  File "/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.6/lib/active_support/callbacks.rb", line 455, in call
  File "/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.6/lib/active_support/callbacks.rb", line 101, in __run_callbacks__
  File "/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.6/lib/active_support/callbacks.rb", line 750, in _run_process_action_callbacks
  File "/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.6/lib/active_support/callbacks.rb", line 90, in run_callbacks
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/abstract_controller/callbacks.rb", line 19, in process_action
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/action_controller/metal/rescue.rb", line 20, in process_action
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/action_controller/metal/instrumentation.rb", line 32, in block in process_action
  File "/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.6/lib/active_support/notifications.rb", line 164, in block in instrument
  File "/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.6/lib/active_support/notifications/instrumenter.rb", line 21, in instrument
  File "/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.6/lib/active_support/notifications.rb", line 164, in instrument
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/action_controller/metal/instrumentation.rb", line 30, in process_action
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/action_controller/metal/params_wrapper.rb", line 248, in process_action
  File "/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.6/lib/active_record/railties/controller_runtime.rb", line 18, in process_action
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/abstract_controller/base.rb", line 126, in process
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionview-5.0.6/lib/action_view/rendering.rb", line 30, in process
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/action_controller/metal.rb", line 190, in dispatch
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/action_controller/metal.rb", line 262, in dispatch
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/action_dispatch/routing/route_set.rb", line 50, in dispatch
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/action_dispatch/routing/route_set.rb", line 32, in serve
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/action_dispatch/journey/router.rb", line 39, in block in serve
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/action_dispatch/journey/router.rb", line 26, in each
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/action_dispatch/journey/router.rb", line 26, in serve
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/action_dispatch/routing/route_set.rb", line 727, in call
  File "/app/vendor/bundle/ruby/2.3.0/gems/warden-1.2.7/lib/warden/manager.rb", line 36, in block in call
  File "/app/vendor/bundle/ruby/2.3.0/gems/warden-1.2.7/lib/warden/manager.rb", line 35, in catch
  File "/app/vendor/bundle/ruby/2.3.0/gems/warden-1.2.7/lib/warden/manager.rb", line 35, in call
  File "/app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/etag.rb", line 25, in call
  File "/app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/conditional_get.rb", line 38, in call
  File "/app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/head.rb", line 12, in call
  File "/app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/session/abstract/id.rb", line 232, in context
  File "/app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/session/abstract/id.rb", line 226, in call
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/action_dispatch/middleware/cookies.rb", line 613, in call
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/action_dispatch/middleware/callbacks.rb", line 38, in block in call
  File "/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.6/lib/active_support/callbacks.rb", line 97, in __run_callbacks__
  File "/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.6/lib/active_support/callbacks.rb", line 750, in _run_call_callbacks
  File "/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.6/lib/active_support/callbacks.rb", line 90, in run_callbacks
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/action_dispatch/middleware/callbacks.rb", line 36, in call
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/action_dispatch/middleware/remote_ip.rb", line 79, in call
  File "/app/vendor/bundle/ruby/2.3.0/gems/rollbar-2.15.5/lib/rollbar/middleware/rails/rollbar.rb", line 24, in block in call
  File "/app/vendor/bundle/ruby/2.3.0/gems/rollbar-2.15.5/lib/rollbar.rb", line 145, in scoped
  File "/app/vendor/bundle/ruby/2.3.0/gems/rollbar-2.15.5/lib/rollbar/middleware/rails/rollbar.rb", line 22, in call
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/action_dispatch/middleware/debug_exceptions.rb", line 49, in call
  File "/app/vendor/bundle/ruby/2.3.0/gems/rollbar-2.15.5/lib/rollbar/middleware/rails/show_exceptions.rb", line 22, in call_with_rollbar
  File "/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.6/lib/action_dispatch/middleware/show_exceptions.rb", line 31, in call
  Fi
ferrisoxide commented 6 years ago

Fixed in #334