[6.6.5] Error 500 when searching a word
Created by: amouhzi
Hello,
I get a 500 error when I do a search.
cat production.log
cat production.log Started GET "/git/search?utf8=&search=mcrypt&project_id=30&search_code=true&repository_ref=" for 127.0.0.1 at 2014-03-14 02:21:18 +0000 Processing by SearchController#show as HTML Parameters: {"utf8"=>"", "search"=>"mcrypt", "project_id"=>"30", "search_code"=>"true", "repository_ref"=>""} Completed 500 Internal Server Error in 230ms NoMethodError (undefined method `[]' for nil:NilClass): app/services/search/project_service.rb:16:in `execute' app/controllers/search_controller.rb:10:in `show' app/controllers/application_controller.rb:57:in `set_current_user_for_thread'