diff --git a/src/GUI/gui.cpp b/src/GUI/gui.cpp index 841e679d..419780ff 100644 --- a/src/GUI/gui.cpp +++ b/src/GUI/gui.cpp @@ -864,6 +864,8 @@ void GUI::loadData(const Data &data) for (int i = 0; i < paths.count(); i++) { PathItem *pi = paths.at(i); + if (!pi) + continue; for (int j = 0; j < graphs.count(); j++) pi->addGraph(graphs.at(j).at(i));