0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 21:44:38 +01:00

Fix notification page panic (#9337)

This commit is contained in:
jaqra 2019-12-13 05:08:34 +03:00 committed by Antoine GIRARD
parent ba1acf5b50
commit 27f68bc96f

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
}