Fix null pointer dereference while parsing the config

This commit is contained in:
Gunnar Beutner 2014-11-13 23:25:52 +01:00
parent 12a41795de
commit 79fb24cedb
1 changed files with 3 additions and 0 deletions

View File

@ -288,6 +288,9 @@ bool ConfigItem::ValidateItems(void)
upq.Join(); upq.Join();
if (ConfigCompilerContext::GetInstance()->HasErrors())
return false;
std::vector<DynamicObject::Ptr> objects; std::vector<DynamicObject::Ptr> objects;
BOOST_FOREACH(const ItemMap::value_type& kv, m_Items) { BOOST_FOREACH(const ItemMap::value_type& kv, m_Items) {
DynamicObject::Ptr object = kv.second->m_Object; DynamicObject::Ptr object = kv.second->m_Object;