NoMethodError: undefined method `[]' for nil:NilClass
jsyeo opened this issue · 0 comments
jsyeo commented
View details in Rollbar: https://rollbar.com/jsyeo/coursemology.org/items/47/
NoMethodError: undefined method `[]' for nil:NilClass
File "/home/raymoond/jenkins/workspace/coursemology_second/app/models/material_folder.rb", line 125, in block in attach_files
File "/home/raymoond/jenkins/workspace/coursemology_second/app/models/material_folder.rb", line 115, in each
File "/home/raymoond/jenkins/workspace/coursemology_second/app/models/material_folder.rb", line 115, in attach_files
File "/home/raymoond/jenkins/workspace/coursemology_second/app/controllers/materials_controller.rb", line 172, in create
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_controller/metal/implicit_render.rb", line 4, in send_action
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/abstract_controller/base.rb", line 167, in process_action
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_controller/metal/rendering.rb", line 10, in process_action
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/abstract_controller/callbacks.rb", line 18, in block in process_action
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activesupport-3.2.14/lib/active_support/callbacks.rb", line 436, in _run__3396435914673639599__process_action__1913476155786674652__callbacks
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activesupport-3.2.14/lib/active_support/callbacks.rb", line 405, in __run_callback
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activesupport-3.2.14/lib/active_support/callbacks.rb", line 385, in _run_process_action_callbacks
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activesupport-3.2.14/lib/active_support/callbacks.rb", line 81, in run_callbacks
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/abstract_controller/callbacks.rb", line 17, in process_action
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_controller/metal/rescue.rb", line 29, in process_action
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb", line 30, in block in process_action
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activesupport-3.2.14/lib/active_support/notifications.rb", line 123, in block in instrument
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb", line 20, in instrument
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activesupport-3.2.14/lib/active_support/notifications.rb", line 123, in instrument
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb", line 29, in process_action
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_controller/metal/params_wrapper.rb", line 207, in process_action
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/railties/controller_runtime.rb", line 18, in process_action
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/rails3/action_controller.rb", line 40, in block in process_action
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/controller_instrumentation.rb", line 364, in perform_action_with_newrelic_trace
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/rails3/action_controller.rb", line 39, in process_action
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/abstract_controller/base.rb", line 121, in process
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/abstract_controller/rendering.rb", line 45, in process
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_controller/metal.rb", line 203, in dispatch
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_controller/metal/rack_delegation.rb", line 14, in dispatch
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_controller/metal.rb", line 246, in block in action
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb", line 73, in call
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb", line 73, in dispatch
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb", line 36, in call
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/journey-1.0.4/lib/journey/router.rb", line 68, in block in call
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/journey-1.0.4/lib/journey/router.rb", line 56, in each
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/journey-1.0.4/lib/journey/router.rb", line 56, in call
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb", line 608, in call
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb", line 57, in call
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/omniauth-1.2.2/lib/omniauth/strategy.rb", line 186, in call!
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/omniauth-1.2.2/lib/omniauth/strategy.rb", line 164, in call
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb", line 57, in call
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/rack/error_collector.rb", line 50, in traced_call
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb", line 55, in call
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/rack/agent_hooks.rb", line 26, in traced_call
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb", line 55, in call
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/rack/browser_monitoring.rb", line 23, in traced_call
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb", line 55, in call
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/exception_notification-4.0.1/lib/exception_notification/rack.rb", line 28, in call
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb", line 57, in call
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/warden-1.2.3/lib/warden/manager.rb", line 35, in block in call
File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/warden-1.2.3/lib/warden/manager.rb", line 34, in catch
File "/home/raymoond/.rvm/gems/ruby-2.1.2/