Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/mailers/emails/notes.rb')
-rw-r--r--app/mailers/emails/notes.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/mailers/emails/notes.rb b/app/mailers/emails/notes.rb
index de58314fef2..a42745acd71 100644
--- a/app/mailers/emails/notes.rb
+++ b/app/mailers/emails/notes.rb
@@ -66,6 +66,7 @@ module Emails
def setup_note_mail(note_id, recipient_id)
@note = Note.find(note_id)
@project = @note.project
+ return unless @project
@sent_notification = SentNotification.record_note(@note, recipient_id, reply_key)
end