From 23b75fd30d483a5530e4bb5763a90b377bba39cc Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 8 Apr 2013 10:02:06 +0200 Subject: [PATCH] Fix crash when application config item is missing. --- lib/base/application.cpp | 3 +++ 1 file changed, 3 insertions(+) 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(); }