500 error on '/profile/notifications' (gitlab 6.0)
Created by: remcoros
Summary: I get a server 500 error when I browse to '/profile/notifications' using gitlab 6.0
Steps to reproduce: Browse to /profile/notifications. (or click the 'notifications' tab in your profile)
Expected behavior: Seeing a working user notifications page
Observed behavior: Server 500 error.
Logs:
ActionView::Template::Error (undefined method `name' for nil:NilClass):
7: - if membership.kind_of? UsersGroup
8: = link_to membership.group.name, membership.group
9: - else
10: = link_to_project(membership.project)
11: .span7
12: = form_tag profile_notifications_path, method: :put, remote: true, class: 'update-notifications' do
13: = hidden_field_tag :notification_type, type, id: dom_id(membership, 'notification_type')
app/helpers/projects_helper.rb:8:in `block in link_to_project'
app/helpers/projects_helper.rb:7:in `link_to_project'
app/views/profiles/notifications/_settings.html.haml:10:in `_app_views_profiles_notifications__settings_html_haml___2561911454178235087_54236540'
app/views/profiles/notifications/show.html.haml:58:in `block in _app_views_profiles_notifications_show_html_haml__1937016620792208934_39250500'
app/views/profiles/notifications/show.html.haml:56:in `_app_views_profiles_notifications_show_html_haml__1937016620792208934_39250500'