From 27f68bc96f951b4e95984f850cad87aca0128d4c Mon Sep 17 00:00:00 2001 From: jaqra <48099350+jaqra@users.noreply.github.com> Date: Fri, 13 Dec 2019 05:08:34 +0300 Subject: [PATCH] Fix notification page panic (#9337) --- models/notification.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/notification.go b/models/notification.go index c8203754f9..5c03b49257 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 }