From: Gunnar Beutner Date: Mon, 5 Aug 2013 06:56:36 +0000 (+0200) Subject: Fix crash in NotificationComponent::NotificationTimerHandler(). X-Git-Tag: v0.0.3~746 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d245bbfc7704e2181041069b0cb25ad11818fa1a;p=icinga2 Fix crash in NotificationComponent::NotificationTimerHandler(). --- diff --git a/components/notification/notificationcomponent.cpp b/components/notification/notificationcomponent.cpp index 2bcac7826..9fdc6e90e 100644 --- a/components/notification/notificationcomponent.cpp +++ b/components/notification/notificationcomponent.cpp @@ -77,6 +77,10 @@ void NotificationComponent::NotificationTimerHandler(void) continue; Service::Ptr service = notification->GetService(); + + if (!service) + continue; + bool reachable = service->IsReachable(); {