diff --git a/src/libsnore/snore.cpp b/src/libsnore/snore.cpp index cd700ff..5c3b88c 100644 --- a/src/libsnore/snore.cpp +++ b/src/libsnore/snore.cpp @@ -177,7 +177,9 @@ bool SnoreCore::setPrimaryNotificationBackend(const QString &backend) void SnoreCore::requestCloseNotification(Notification n, Notification::CloseReasons r) { Q_D(SnoreCore); - d->m_notificationBackend->requestCloseNotification(n, r); + if (d->m_notificationBackend) { + d->m_notificationBackend->requestCloseNotification(n, r); + } } bool SnoreCore::primaryBackendSupportsRichtext()