Fix notification page panic (#9337)

tokarchuk/v1.17
jaqra 5 years ago committed by Antoine GIRARD
parent ba1acf5b50
commit 27f68bc96f
  1. 2
      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
}

Loading…
Cancel
Save