Starting from 2021-07-01, all LRZ GitLab users will be required to explicitly accept the GitLab Terms of Service. Please see the detailed information at and make sure that your projects conform to the requirements.

Commit 615b0a85 authored by Alessio Netti's avatar Alessio Netti
Browse files

Analytics: small fix to Smoothing configurator

- Will not crash anymore with an empty sensor tree
parent a9731ee3
......@@ -87,7 +87,13 @@ bool SmoothingConfigurator::readUnits(SmoothingOperator& op, std::vector<Smoothi
// If no inputs are specified, we pick all sensors present in the sensor tree
if(protoInputs.empty() && inputMode==SELECTIVE) {
set<string> *inputNames = _queryEngine.getNavigator()->getSensors(SensorNavigator::rootKey, true);
set <string> *inputNames = NULL;
try {
inputNames = _queryEngine.getNavigator()->getSensors(SensorNavigator::rootKey, true);
} catch(const std::exception &e) {
LOG(error) << _operatorName << " " << op.getName() << ": Error when creating units: " << e.what();
return false;
for(const auto& n : *inputNames) {
SmoothingSensorBase ssb(n);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment