Error 500 when viewing commit: ActionView::Template::Error: undefined method `zero?' for nil:NilClass
Sample failing URL: https://dev.gitlab.org/gitlab/gitlab-build-images/commit/81d80aa564eec7c3146dd7ade4f8dac8175d6b9f
Created by @stanhu.
https://sentry.gitlap.com/gitlab/devgitlaborg/issues/117135/
NoMethodError: undefined method `zero?' for nil:NilClass
lib/gitlab/git/blob.rb:194:in `find_by_rugged'
data: limit.zero? ? '' : blob.content(limit),
lib/gitlab/git/blob.rb:63:in `block (2 levels) in batch'
find_by_rugged(repository, sha, path, limit: blob_size_limit)
lib/gitlab/git/blob.rb:62:in `map'
blob_references.map do |sha, path|
lib/gitlab/git/blob.rb:62:in `block in batch'
blob_references.map do |sha, path|
lib/gitlab/gitaly_client.rb:232:in `block (2 levels) in migrate'
yield is_enabled
...
(219 additional frame(s) were not displayed)
ActionView::Template::Error: undefined method `zero?' for nil:NilClass
ActionView::Template::Error: undefined method `zero?' for nil:NilClass