summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/models/notification_recipient.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/notification_recipient.rb b/app/models/notification_recipient.rb
index 837b62ec0cb..a14254178e1 100644
--- a/app/models/notification_recipient.rb
+++ b/app/models/notification_recipient.rb
@@ -31,7 +31,7 @@ class NotificationRecipient
@notification_level ||=
case raw_notification_level
when :custom
- if @custom_action && notification_setting.event_enabled?(@custom_action)
+ if @custom_action && notification_setting&.event_enabled?(@custom_action)
:watch
else
:custom