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") } }