diff --git a/lib/remote/configobjectutility.cpp b/lib/remote/configobjectutility.cpp index a87cecf6f..2968ccdb2 100644 --- a/lib/remote/configobjectutility.cpp +++ b/lib/remote/configobjectutility.cpp @@ -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);