mirror of https://github.com/Icinga/icinga2.git
Fix null pointer dereference while parsing the config
This commit is contained in:
parent
12a41795de
commit
79fb24cedb
|
@ -288,6 +288,9 @@ bool ConfigItem::ValidateItems(void)
|
|||
|
||||
upq.Join();
|
||||
|
||||
if (ConfigCompilerContext::GetInstance()->HasErrors())
|
||||
return false;
|
||||
|
||||
std::vector<DynamicObject::Ptr> objects;
|
||||
BOOST_FOREACH(const ItemMap::value_type& kv, m_Items) {
|
||||
DynamicObject::Ptr object = kv.second->m_Object;
|
||||
|
|
Loading…
Reference in New Issue