Skip to content
Snippets Groups Projects
Commit 74fe8291 authored by Tom Fischer's avatar Tom Fischer
Browse files

[A/DE/DataView] DiagramList: continue when time series isn't avail.

parent 2c705c33
No related branches found
No related tags found
No related merge requests found
......@@ -279,15 +279,18 @@ int DiagramList::readList(const SensorData* data,
for (int i = 0; i < nLists; i++)
{
auto const* time_series = data->getTimeSeries(time_series_names[i]);
if (!time_series)
{
continue;
}
auto* l = new DiagramList;
l->setName(QString::fromStdString(
SensorData::convertSensorDataType2String(time_series_names[i])));
l->setXLabel("Time");
lists.push_back(l);
const std::vector<float>* time_series =
data->getTimeSeries(time_series_names[i]);
if (is_date)
{
l->setXUnit("day");
......
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