diff --git a/app/models/notification_recipient.rb b/app/models/notification_recipient.rb
index 837b62ec0cb36d2a3edbd579dafa164a8da9f772..a14254178e10cb2ce7188225fd01ffef7ae08073 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