From 0241111846592e4ac03139458f645e37200cec80 Mon Sep 17 00:00:00 2001 From: Alik Khilazhev Date: Wed, 30 Nov 2022 15:48:02 +0700 Subject: [PATCH] fix: nil pointer deref in tests Signed-off-by: Alik Khilazhev --- pkg/notify/notify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/notify/notify.go b/pkg/notify/notify.go index 0d1f733..22aa294 100644 --- a/pkg/notify/notify.go +++ b/pkg/notify/notify.go @@ -301,7 +301,7 @@ func (r *Receiver) search(project, issueLabel string) (*jira.Issue, bool, error) func (r *Receiver) findIssueToReuse(project string, issueGroupLabel string) (*jira.Issue, bool, error) { - if !*r.conf.ReopenEnabled { + if r.conf.ReopenEnabled != nil && !*r.conf.ReopenEnabled { level.Debug(r.logger).Log("msg", "reopening disabled, skipping search for existing issue") return nil, false, nil }