Ensure `name` field set before parsing mapping node

This commit is contained in:
Jack Andersen 2016-10-07 17:39:40 -10:00
parent b3ca9a0a90
commit a5a3244e1a
1 changed files with 1 additions and 1 deletions

View File

@ -701,7 +701,7 @@ public:
int& seqIdx = m_seqTrackerStack.back();
return NodeToVal<RETURNTYPE>(mnode->m_seqChildren[seqIdx++].get());
}
else if (mnode->m_type == YAML_MAPPING_NODE)
else if (mnode->m_type == YAML_MAPPING_NODE && name)
{
for (const auto& item : mnode->m_mapChildren)
{