Resolve "Error 500 loading merge request: undefined method `index' for nil:NilClass"
Merged
requested to merge 42160-error-500-loading-merge-request-undefined-method-index-for-nil-nilclass into master
1 unresolved thread
Compare changes
Files
3- Sean McGivern authored
It appears that some legacy diff notes on GitLab.com have invalid line codes, which means truncated_diff_lines won't work. This is just a band-aid solution, as neither the diff nor the discussion will display correctly for these notes, but they won't cause a 500 error.
@@ -37,6 +37,8 @@ def on_merge_request_commit?