diff options
Diffstat (limited to 'app/models/note.rb')
-rw-r--r-- | app/models/note.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index d807d5ad618..1073c115630 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -300,7 +300,7 @@ class Note < ActiveRecord::Base end def expire_etag_cache - return unless noteable.discussions_rendered_on_frontend? + return unless noteable&.discussions_rendered_on_frontend? key = Gitlab::Routing.url_helpers.project_noteable_notes_path( project, |