From 1557395ab6963baeb42f5bcd93eedba128c2351d Mon Sep 17 00:00:00 2001 From: "Frank T. Bergmann" Date: Fri, 29 May 2020 15:54:04 +0200 Subject: [PATCH] - issue #67: don't fail on missing reference result --- .../src/org/sbml/testsuite/ui/MainWindow.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/test-runner/testsuite-ui/src/org/sbml/testsuite/ui/MainWindow.java b/src/test-runner/testsuite-ui/src/org/sbml/testsuite/ui/MainWindow.java index 9f9758b5f5..2215895db0 100644 --- a/src/test-runner/testsuite-ui/src/org/sbml/testsuite/ui/MainWindow.java +++ b/src/test-runner/testsuite-ui/src/org/sbml/testsuite/ui/MainWindow.java @@ -3672,6 +3672,14 @@ private void updatePlotsForSelection(TreeItem treeItem) ResultSet expected = model.getSuite().get(itemName).getExpectedResult(); + if (expected == null) + { + showMessageNotAvailable(cmpDifferences, + "Data cannot be plotted because the reference result is missing."); + cmpDifferences.layout(); + return; + } + if (expected.hasInfinityOrNaN()) { showMessageNotAvailable(cmpDifferences,