From f91de6eca97108e97d827bde5feed6338d7359d8 Mon Sep 17 00:00:00 2001 From: lempinen Date: Tue, 26 Feb 2013 13:05:16 +0000 Subject: [PATCH] Check that ExpressionComposite is not disposed before modifying it (fixes #4124) git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@26915 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../sysdyn/ui/properties/widgets/ExpressionWidget.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/ExpressionWidget.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/ExpressionWidget.java index e0a996f6..e6cf9c57 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/ExpressionWidget.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/ExpressionWidget.java @@ -132,7 +132,7 @@ public class ExpressionWidget implements Widget { * expression change its type (false) */ public void displayExpression(String expressionType, boolean original) { - if(expressionType == null) { + if(expressionType == null || parent.isDisposed()) { return; } -- 2.47.1