Fix crash in Checkable::OnAllConfigLoaded

fixes #13103
This commit is contained in:
Gunnar Beutner 2016-11-10 13:42:50 +01:00
parent 2c37a00daf
commit 06e4b4e9da
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ void Checkable::OnAllConfigLoaded(void)
Zone::Ptr cmdZone = endpoint->GetZone();
if (cmdZone != checkableZone && cmdZone->GetParent() != checkableZone) {
if (checkableZone && cmdZone != checkableZone && cmdZone->GetParent() != checkableZone) {
BOOST_THROW_EXCEPTION(ValidationError(this, boost::assign::list_of("command_endpoint"),
"Command endpoint must be in zone '" + checkableZone->GetName() + "' or in a direct child zone thereof."));
}