Fix crash in ApiListener::ConfigUpdateObjectAPIHandler

fixes #11006
This commit is contained in:
Gunnar Beutner 2016-02-09 09:13:43 +01:00
parent c1b4a8b757
commit 2f948ca8ca
1 changed files with 4 additions and 2 deletions

View File

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