diff --git a/models/notification.go b/models/notification.go index c8203754f90..5c03b492574 100644 --- a/models/notification.go +++ b/models/notification.go @@ -446,7 +446,7 @@ func (nl NotificationList) LoadComments() error { } for _, notification := range nl { - if notification.CommentID > 0 && notification.Comment == nil { + if notification.CommentID > 0 && notification.Comment == nil && comments[notification.CommentID] != nil { notification.Comment = comments[notification.CommentID] notification.Comment.Issue = notification.Issue }