diff --git a/lib/remote/apilistener-configsync.cpp b/lib/remote/apilistener-configsync.cpp index 89d154be7..970ea4c75 100644 --- a/lib/remote/apilistener-configsync.cpp +++ b/lib/remote/apilistener-configsync.cpp @@ -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)