From: Gunnar Beutner Date: Mon, 8 Apr 2013 08:02:06 +0000 (+0200) Subject: Fix crash when application config item is missing. X-Git-Tag: v0.0.2~151 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23b75fd30d483a5530e4bb5763a90b377bba39cc;p=icinga2 Fix crash when application config item is missing. --- diff --git a/lib/base/application.cpp b/lib/base/application.cpp index 547652c60..b3872e79d 100644 --- a/lib/base/application.cpp +++ b/lib/base/application.cpp @@ -102,6 +102,9 @@ Application::~Application(void) */ Application::Ptr Application::GetInstance(void) { + if (!m_Instance) + return Application::Ptr(); + return m_Instance->GetSelf(); }