ActionView::Template::Error: undefined method `text?' for nil:NilClass
- https://sentry.gitlap.com/gitlab/gitlabcom/issues/16122/
- https://sentry.gitlap.com/gitlab/gitlabcom/issues/16123/
- https://sentry.gitlap.com/gitlab/gitlabcom/issues/16129/
NoMethodError: undefined method `text?' for nil:NilClass
lib/gitlab/diff/file_collection/merge_request_diff.rb:64:in `cacheable?'
@merge_request_diff.present? && diff_file.blob.text?
lib/gitlab/diff/file_collection/merge_request_diff.rb:23:in `decorate_diff!'
cache_highlight!(diff_file) if cacheable?(diff_file)
lib/gitlab/diff/file_collection/base.rb:24:in `block in diff_files'
@diff_files ||= @diffs.decorate! { |diff| decorate_diff!(diff) }
lib/gitlab/metrics/instrumentation.rb:155:in `block in each_patch'
trans.method_call_for(#{label.to_sym.inspect}).measure { super }
lib/gitlab/metrics/method_call.rb:23:in `measure'
retval = yield
...
(168 additional frame(s) were not displayed)
ActionView::Template::Error: undefined method `text?' for nil:NilClass
It seems to happen on old MRs and started after the deployment of 8.14.2...