ApiListener: Bail out if object could not be created during config sync

refs #11006
This commit is contained in:
Michael Friedrich 2016-02-12 14:11:50 +01:00 committed by Gunnar Beutner
parent 2f948ca8ca
commit a30b112391
1 changed files with 5 additions and 3 deletions

View File

@ -128,11 +128,13 @@ Value ApiListener::ConfigUpdateObjectAPIHandler(const MessageOrigin::Ptr& origin
return Empty;
}
/* object was created, update its version */
object = dtype->GetObject(objName);
if (object)
object->SetVersion(objVersion, false, origin);
if (!object)
return Empty;
/* object was created, update its version */
object->SetVersion(objVersion, false, origin);
}
if (!object)