diff --git a/src/ServiceDiscovery/SlowControlCollection.h b/src/ServiceDiscovery/SlowControlCollection.h index b056cb4..12d8700 100644 --- a/src/ServiceDiscovery/SlowControlCollection.h +++ b/src/ServiceDiscovery/SlowControlCollection.h @@ -53,6 +53,7 @@ namespace ToolFramework{ template T GetValue(std::string name){ + if(!SC_vars.count(name)) return T{}; return SC_vars[name]->GetValue(); }