From 79fb24cedbdcc5a131a59581b87755edeee33789 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 13 Nov 2014 23:25:52 +0100 Subject: [PATCH] Fix null pointer dereference while parsing the config --- lib/config/configitem.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/config/configitem.cpp b/lib/config/configitem.cpp index 26be1d8a3..2ac90c152 100644 --- a/lib/config/configitem.cpp +++ b/lib/config/configitem.cpp @@ -288,6 +288,9 @@ bool ConfigItem::ValidateItems(void) upq.Join(); + if (ConfigCompilerContext::GetInstance()->HasErrors()) + return false; + std::vector objects; BOOST_FOREACH(const ItemMap::value_type& kv, m_Items) { DynamicObject::Ptr object = kv.second->m_Object;