From 6acfbb042058eb92fb6d781fc545e68a3a06a1dd Mon Sep 17 00:00:00 2001 From: lempinen Date: Tue, 11 Dec 2012 07:19:31 +0000 Subject: [PATCH] Null check for lazy result reading (refs #3709) git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@26517 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../src/org/simantics/modelica/data/SimulationResult.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.simantics.modelica/src/org/simantics/modelica/data/SimulationResult.java b/org.simantics.modelica/src/org/simantics/modelica/data/SimulationResult.java index 33846537..295dda54 100644 --- a/org.simantics.modelica/src/org/simantics/modelica/data/SimulationResult.java +++ b/org.simantics.modelica/src/org/simantics/modelica/data/SimulationResult.java @@ -445,6 +445,9 @@ public class SimulationResult { * @throws IOException */ public void readVariable(String variable, File file) throws FileNotFoundException, IOException { + if(resultFileReader == null) + return; + DataSet ds; List names = resultFileReader.getNames(); if (names.contains(variable)) { -- 2.47.1