We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bba6a76 commit efdd1ffCopy full SHA for efdd1ff
1 file changed
lib/icinga/comment.cpp
@@ -65,7 +65,7 @@ void Comment::OnAllConfigLoaded()
65
66
Host::Ptr host = Host::GetByName(GetHostName());
67
68
- if (GetServiceName().IsEmpty())
+ if (GetServiceName().IsEmpty() || ! host)
69
m_Checkable = host;
70
else
71
m_Checkable = host->GetServiceByShortName(GetServiceName());
0 commit comments