In January 2021 we will introduce a 10 GB quota for project repositories. Higher limits for individual projects will be available on request. Please see for more information.

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

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