Skip to content

Commit

Permalink
Fix crash in ApiListener::ConfigUpdateObjectAPIHandler
Browse files Browse the repository at this point in the history
fixes #11006
  • Loading branch information
gunnarbeutner committed Feb 9, 2016
1 parent 393a6bf commit 14d805e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/remote/apilistener-configsync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 14d805e

Please sign in to comment.