Netflix-Skunkworks / Scumblr

Web framework that allows performing periodic syncs of data sources and performing analysis on the identified results
Apache License 2.0
2.64k stars 317 forks source link

Exception is thrown when result_flags list contains 'nil' object #75

Closed christiankakesa closed 8 years ago

christiankakesa commented 8 years ago

The error bellow arrise on results who have Workflow or Workflow flag updated :

Started GET "/results/1138" for 5.xx.xx.xx at 2016-04-02 01:04:40 +0200
Processing by ResultsController#show as HTML
  Parameters: {"id"=>"1138"}
  Rendered results/_status_bar.html.erb (24.9ms)
  Rendered results/_show_details.html.erb (5.0ms)
  Rendered shared/_paginated_table.html.erb (33.7ms)
  Rendered shared/_abstract_table.html.erb (35.1ms)
  Rendered results/_assignee.html.erb (8.2ms)
  Rendered results/_subscriber_list.html.erb (6.2ms)
  Rendered results/_subscription.html.erb (25.0ms)
  Rendered results/_result_workflow.html.erb (13.6ms)
  Rendered results/show.html.erb within layouts/application (214.5ms)
Completed 500 Internal Server Error in 337ms

NoMethodError (undefined method `each' for nil:NilClass):
  app/views/results/_result_workflow.html.erb:10:in `block in _app_views_results__result_workflow_html_erb___55529443539286669_47284360'
  app/views/results/_result_workflow.html.erb:5:in `_app_views_results__result_workflow_html_erb___55529443539286669_47284360'
  app/views/results/show.html.erb:128:in `block in _app_views_results_show_html_erb___1165098138450291899_49502320'
  app/views/results/show.html.erb:64:in `_app_views_results_show_html_erb___1165098138450291899_49502320'
  app/controllers/results_controller.rb:111:in `show'
christiankakesa commented 8 years ago

The pull request #76 solve this issue.