Fix crash in ConfigObjectUtility::CreateObject

refs #9082
This commit is contained in:
Gunnar Beutner 2015-08-18 20:25:06 +02:00
parent 854f8ec918
commit b3db2ee1f6
1 changed files with 4 additions and 1 deletions

View File

@ -132,7 +132,10 @@ bool ConfigObjectUtility::CreateObject(const Type::Ptr& type, const String& full
Dictionary::Ptr allAttrs = new Dictionary();
attrs->CopyTo(allAttrs);
nameParts->CopyTo(allAttrs);
if (nameParts)
nameParts->CopyTo(allAttrs);
allAttrs->Remove("name");
ConfigWriter::Ptr cw = new ConfigWriter(path);