Skip to content
Snippets Groups Projects
Commit d688f387 authored by Fabian Reister's avatar Fabian Reister
Browse files

Arviz client: checking if topic and other proxies are not null

parent 7942e947
No related branches found
No related tags found
No related merge requests found
......@@ -71,6 +71,8 @@ Client Client::createForGuiPlugin(Component& component,
CommitResult Client::commit(const StagedCommit& commit)
{
CommitResult result;
ARMARX_CHECK_NOT_NULL(storage);
result.data_ = storage->commitAndReceiveInteractions(commit.data_);
return result;
}
......@@ -78,6 +80,8 @@ CommitResult Client::commit(const StagedCommit& commit)
CommitResultAsync Client::commitAsync(const StagedCommit& commit)
{
CommitResultAsync result;
ARMARX_CHECK_NOT_NULL(storage);
result.async = storage->begin_commitAndReceiveInteractions(commit.data_);
result.storage = storage;
return result;
......@@ -92,6 +96,7 @@ void Client::commit(const std::vector<Layer>& layers)
updates.push_back(layer.data_);
}
// This commit call still uses the legacy topic API
ARMARX_CHECK_NOT_NULL(topic);
topic->updateLayers(updates);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment