Defect #258
完了Error when trying to annotate a file
説明
Hello,
When trying to annotate a line of a file, I get the following error:
Showing layouts/base.rhtml where line #66 raised:
undefined method `[]' for nil:NilClass
Here is the trace:
vendor/plugins/redmine_code_review/lib/code_review_application_hooks.rb:154:in `change_revision_view'
vendor/plugins/redmine_code_review/lib/code_review_application_hooks.rb:90:in `view_layouts_base_body_bottom'
lib/redmine/hook.rb:63:in `send'
lib/redmine/hook.rb:63:in `call_hook'
lib/redmine/hook.rb:63:in `each'
lib/redmine/hook.rb:63:in `call_hook'
vendor/rails/activesupport/lib/active_support/core_ext/object/misc.rb:28:in `returning'
lib/redmine/hook.rb:60:in `call_hook'
lib/redmine/hook.rb:144:in `call_hook'
An the parameters:
{"rev"=>"77658c010fc873346b596d6fa9a9c5aff85e62b",
"id"=>"test-schedules"}
I have submitted a small patch addressing this issue. Hope that helps.
Regards,
Arnaud Fontaine
ファイル