Skip to content
Snippets Groups Projects
Commit f0fc9e81 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

fix running into an assertion sometimes: getQualitifedName() should also be...

fix running into an assertion sometimes: getQualitifedName() should also be possible if the highest hierarchy is a Module (e.g. a VirtualModule)
parent 2530f48a
No related branches found
No related tags found
No related merge requests found
......@@ -112,8 +112,7 @@ namespace ChimeraTK {
void connectTo(const Module &target, VariableNetworkNode trigger={}) const;
std::string getQualifiedName() const override {
assert(_owner != nullptr);
return _owner->getQualifiedName() + "/" + _name;
return ( (_owner != nullptr) ? _owner->getQualifiedName() : "" ) + "/" + _name;
}
/** Set a new owner. The caller has to take care himself that the Module gets unregistered with the old owner
......
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