Fix crash in ApiListener::ConfigUpdateObjectAPIHandler

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

View File

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