mirror of https://github.com/Icinga/icinga2.git
Fix crash when application config item is missing.
This commit is contained in:
parent
4e5e488b17
commit
23b75fd30d
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue