]> granicus.if.org Git - icinga2/commitdiff
Fix crash in NotificationComponent::NotificationTimerHandler().
authorGunnar Beutner <gunnar.beutner@netways.de>
Mon, 5 Aug 2013 06:56:36 +0000 (08:56 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Mon, 5 Aug 2013 06:57:08 +0000 (08:57 +0200)
components/notification/notificationcomponent.cpp

index 2bcac782640816a5493c0808ada1dac50527dfc4..9fdc6e90e3c66a17a537424ada61b1b5add79317 100644 (file)
@@ -77,6 +77,10 @@ void NotificationComponent::NotificationTimerHandler(void)
                        continue;
 
                Service::Ptr service = notification->GetService();
+
+               if (!service)
+                       continue;
+
                bool reachable = service->IsReachable();
 
                {