diff --git a/src/test-runner/testsuite-core/src/org/sbml/testsuite/core/DelayedResult.java b/src/test-runner/testsuite-core/src/org/sbml/testsuite/core/DelayedResult.java index f23359738f..b6460986a2 100644 --- a/src/test-runner/testsuite-core/src/org/sbml/testsuite/core/DelayedResult.java +++ b/src/test-runner/testsuite-core/src/org/sbml/testsuite/core/DelayedResult.java @@ -150,6 +150,7 @@ public ResultType call() public ResultType getResult() { if (isDone) return result; + if (worker == null) return result; try { diff --git a/src/test-runner/testsuite-core/src/org/sbml/testsuite/core/data/ResultSet.java b/src/test-runner/testsuite-core/src/org/sbml/testsuite/core/data/ResultSet.java index 7c6b252671..7f7dc0a188 100644 --- a/src/test-runner/testsuite-core/src/org/sbml/testsuite/core/data/ResultSet.java +++ b/src/test-runner/testsuite-core/src/org/sbml/testsuite/core/data/ResultSet.java @@ -463,6 +463,9 @@ else if (!file.canRead() || !file.isFile()) // Something's wrong. // have to keep testing the values themselves. int numRows = data.length; + if (numRows == 0 || data[0] == null) + return; + int numColumns = data[0].length; for (int row = 0; row < numRows; row++) for (int col = 0; col < numColumns; col++)