mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 08:04:14 +02:00
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…
x
Reference in New Issue
Block a user