diff --git a/lib/icinga/notification.cpp b/lib/icinga/notification.cpp index 3fbcf9508..11d92ef3c 100644 --- a/lib/icinga/notification.cpp +++ b/lib/icinga/notification.cpp @@ -216,6 +216,12 @@ void Notification::BeginExecuteNotificationHelper(const Dictionary::Ptr& notific ScriptTask::Ptr task; task = MakeMethodTask("notify", arguments); + if (!task) { + Logger::Write(LogWarning, "icinga", "Notification object '" + GetName() + "' doesn't have a 'notify' method."); + + return; + } + { ObjectLock olock(this);