diff --git a/notification.go b/notification.go index e571c68..48104b4 100644 --- a/notification.go +++ b/notification.go @@ -271,6 +271,9 @@ func (n notifier) eventLoop(done <-chan struct{}) { // signal handler that translates and sends notifications to channels func (n notifier) handleSignal(signal *dbus.Signal) { + if signal == nil { + return + } switch signal.Name { case signalNotificationClosed: nc := &NotificationClosedSignal{