]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
(fixes #5695) Assertion error when removing a model
authorvillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 3 Mar 2015 09:36:35 +0000 (09:36 +0000)
committervillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 3 Mar 2015 09:36:35 +0000 (09:36 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@31014 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ConfigurationTab.java

index 2c783b6e76a76cd72573343a6b95c4c3dc8f7ae4..56de64ab99a66c2be0d3d16919da704d3b397bb2 100644 (file)
@@ -309,6 +309,7 @@ public class ConfigurationTab extends AdjustableTab {
                SysdynResource SR = SysdynResource.getInstance(graph);\r
                SimulationResource SIM = SimulationResource.getInstance(graph);\r
                 Resource configuration = graph.getPossibleObject(model, SIM.HasConfiguration);\r
+                if(configuration == null) return null;\r
                 return graph.getPossibleObject(configuration, SR.SysdynModel_useModelicaLibraries) != null;\r
             }\r
         });\r