]> granicus.if.org Git - icinga2/commitdiff
Fix null pointer dereference while parsing the config
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 13 Nov 2014 22:25:52 +0000 (23:25 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 13 Nov 2014 22:25:52 +0000 (23:25 +0100)
lib/config/configitem.cpp

index 26be1d8a325d629a6a48d4eede3cbf855b65ec86..2ac90c1528074b5f206e94edc7464cebaea5f052 100644 (file)
@@ -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;