Fix crash when application config item is missing.

This commit is contained in:
Gunnar Beutner 2013-04-08 10:02:06 +02:00
parent 4e5e488b17
commit 23b75fd30d
1 changed files with 3 additions and 0 deletions

View File

@ -102,6 +102,9 @@ Application::~Application(void)
*/ */
Application::Ptr Application::GetInstance(void) Application::Ptr Application::GetInstance(void)
{ {
if (!m_Instance)
return Application::Ptr();
return m_Instance->GetSelf(); return m_Instance->GetSelf();
} }