Skip to content
Snippets Groups Projects
Commit f29e7e67 authored by ARMAR-6's avatar ARMAR-6
Browse files

Add more sanity checks

parent a1a50fd4
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,7 @@ Client::Client(ManagedIceObject& obj,
std::string const& storageName)
{
componentName = obj.getName();
ARMARX_CHECK_NOT_EMPTY(componentName);
obj.getTopic(topic, topicName);
obj.getProxy(storage, storageName);
}
......@@ -35,6 +36,7 @@ Client::Client(ManagedIceObject& obj,
Client Client::createFromTopic(std::string const& componentName, Topic::ProxyType const& topic)
{
Client client;
ARMARX_CHECK_NOT_EMPTY(componentName);
client.componentName = componentName;
client.topic = topic;
return client;
......
......@@ -132,6 +132,8 @@ namespace viz
Layer layer(std::string const& name) const
{
ARMARX_CHECK_NOT_EMPTY(componentName);
ARMARX_CHECK_NOT_EMPTY(name);
return Layer(componentName, name);
}
......
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