ActionView::Template::Error: undefined method `size' for nil:NilClass
https://sentry.gitlap.com/gitlab/gitlabcom/issues/15271/
NoMethodError: undefined method `size' for nil:NilClass
app/views/projects/merge_requests/_new_submit.html.haml:40:in `block in _app_views_projects_merge_requests__new_submit_html_haml__4106804917501438834_69846551410620'
%span.badge= @statuses.size
app/views/projects/merge_requests/_new_submit.html.haml:38:in `_app_views_projects_merge_requests__new_submit_html_haml__4106804917501438834_69846551410620'
= link_to url_for(params), data: {target: 'div#builds', action: 'builds', toggle: 'tab'} do
app/views/projects/merge_requests/new.html.haml:4:in `_app_views_projects_merge_requests_new_html_haml__2694750976714202706_69846460933620'
= render 'new_submit'
lib/gitlab/request_profiler/middleware.rb:15:in `call'
@app.call(env)
lib/gitlab/middleware/rails_queue_duration.rb:20:in `call'
@app.call(env)
...
(144 additional frame(s) were not displayed)
ActionView::Template::Error: undefined method `size' for nil:NilClass
Related to !7664 (merged): if @pipeline
is not present, we don't define @statuses
.