From 8803a31815ee4cea9cd074b17e3bf5318e1a0839 Mon Sep 17 00:00:00 2001 From: villberg Date: Tue, 3 Mar 2015 09:36:35 +0000 Subject: [PATCH] (fixes #5695) Assertion error when removing a model git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@31014 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../src/org/simantics/sysdyn/ui/properties/ConfigurationTab.java | 1 + 1 file changed, 1 insertion(+) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ConfigurationTab.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ConfigurationTab.java index 2c783b6e..56de64ab 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ConfigurationTab.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ConfigurationTab.java @@ -309,6 +309,7 @@ public class ConfigurationTab extends AdjustableTab { SysdynResource SR = SysdynResource.getInstance(graph); SimulationResource SIM = SimulationResource.getInstance(graph); Resource configuration = graph.getPossibleObject(model, SIM.HasConfiguration); + if(configuration == null) return null; return graph.getPossibleObject(configuration, SR.SysdynModel_useModelicaLibraries) != null; } }); -- 2.47.1