diff --git a/brightray/browser/linux/notification_presenter_linux.cc b/brightray/browser/linux/notification_presenter_linux.cc index db9c67d3c892..557e527047d4 100644 --- a/brightray/browser/linux/notification_presenter_linux.cc +++ b/brightray/browser/linux/notification_presenter_linux.cc @@ -153,12 +153,16 @@ void NotificationPresenterLinux::DeleteNotification(NotifyNotification* notifica } void NotificationPresenterLinux::OnNotificationClosed(NotifyNotification* notification) { + if (!notification) + return; GetDelegateFromNotification(notification)->NotificationClosed(); DeleteNotification(notification); } void NotificationPresenterLinux::OnNotificationView( NotifyNotification* notification, char* action) { + if (!notification) + return; GetDelegateFromNotification(notification)->NotificationClick(); DeleteNotification(notification); }