]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Null check for lazy result reading (refs #3709)
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 11 Dec 2012 07:19:31 +0000 (07:19 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 11 Dec 2012 07:19:31 +0000 (07:19 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@26517 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.modelica/src/org/simantics/modelica/data/SimulationResult.java

index 33846537d432090c2f45fa64b306cb62fad33203..295dda54b351fc9bd100a39a19cbe9defa90df8c 100644 (file)
@@ -445,6 +445,9 @@ public class SimulationResult {
      * @throws IOException\r
      */\r
     public void readVariable(String variable, File file) throws FileNotFoundException, IOException {\r
+        if(resultFileReader == null)\r
+            return;\r
+        \r
         DataSet ds;\r
         List<String> names = resultFileReader.getNames();\r
         if (names.contains(variable)) {\r