diff --git a/internal/notif/dispatcher.go b/internal/notif/dispatcher.go
index aec19ca..c8431b2 100644
--- a/internal/notif/dispatcher.go
+++ b/internal/notif/dispatcher.go
@@ -42,6 +42,9 @@ func StartNotifDispatcher(parent task.Parent) *Dispatcher {
 }
 
 func Notify(msg *LogMessage) {
+	if dispatcher == nil {
+		return
+	}
 	select {
 	case <-dispatcher.task.Context().Done():
 		return