From: Gunnar Beutner Date: Tue, 22 Jan 2013 10:11:11 +0000 (+0100) Subject: Fixed invalid cast in Service::BeginExecuteCheck(). X-Git-Tag: v0.0.2~689 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20eaa441dfc69b24803bc97a8594a4ac8c7ece5c;p=icinga2 Fixed invalid cast in Service::BeginExecuteCheck(). --- diff --git a/lib/icinga/service.cpp b/lib/icinga/service.cpp index 8e4e03e6c..979dd2e5b 100644 --- a/lib/icinga/service.cpp +++ b/lib/icinga/service.cpp @@ -484,7 +484,7 @@ void Service::OnAttributeChanged(const String& name, const Value& oldValue) void Service::BeginExecuteCheck(const function& callback) { /* don't run another check if there is one pending */ - if (Get("current_task")) { + if (!Get("current_task").IsEmpty()) { /* we need to call the callback anyway */ callback();