From c33047f60cc73f82f2fd79b30622e66a826f57a0 Mon Sep 17 00:00:00 2001 From: Roland Osborne Date: Fri, 19 May 2023 15:48:25 -0700 Subject: [PATCH] fix exception on notify if hostname not set --- net/server/internal/notify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/server/internal/notify.go b/net/server/internal/notify.go index 2b01051a..ea2736c2 100644 --- a/net/server/internal/notify.go +++ b/net/server/internal/notify.go @@ -141,7 +141,7 @@ func sendRemoteNotification(notification *store.Notification) { if err != nil { ErrMsg(err) } - if resp.StatusCode != 200 { + if resp == nil || resp.StatusCode != 200 { LogMsg("failed to notify contact") } }