From: villberg Date: Tue, 3 Mar 2015 09:36:35 +0000 (+0000) Subject: (fixes #5695) Assertion error when removing a model X-Git-Tag: v1.29.0~115 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=8803a31815ee4cea9cd074b17e3bf5318e1a0839;p=simantics%2Fsysdyn.git (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 --- 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; } });