Browse Source

Fix notification page panic (#9337)

tags/v1.21.12.1
jaqra Antoine GIRARD 6 years ago
parent
commit
27f68bc96f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/notification.go

+ 1
- 1
models/notification.go View File

@@ -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