500 when updating global notification email for group - NoMethodError: undefined method `update' for nil:NilClass

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

https://sentry.gitlab.net/gitlab/gitlabcom/issues/966769/

NoMethodError: undefined method `update' for nil:NilClass
  profiles/groups_controller.rb:10:in `update'
    if notification_setting.update(update_params)
  action_controller/metal/basic_implicit_render.rb:6:in `send_action'
    super.tap { default_render unless performed? }
  abstract_controller/base.rb:194:in `process_action'
    send_action(method_name, *args)
  action_controller/metal/rendering.rb:30:in `process_action'
    super
  abstract_controller/callbacks.rb:42:in `block in process_action'
    super
...
(116 additional frame(s) were not displayed)

NoMethodError: undefined method `update' for nil:NilClass

Related Support Tickets (internal)

Edited by 🤖 GitLab Bot 🤖