Skip to content

Commit 27f68bc

Browse files
jaqrasapk
jaqra
authored andcommitted
Fix notification page panic (#9337)
1 parent ba1acf5 commit 27f68bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/notification.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ func (nl NotificationList) LoadComments() error {
446446
}
447447

448448
for _, notification := range nl {
449-
if notification.CommentID > 0 && notification.Comment == nil {
449+
if notification.CommentID > 0 && notification.Comment == nil && comments[notification.CommentID] != nil {
450450
notification.Comment = comments[notification.CommentID]
451451
notification.Comment.Issue = notification.Issue
452452
}

0 commit comments

Comments
 (0)