]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Check that ExpressionComposite is not disposed before modifying it (fixes #4124)
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 26 Feb 2013 13:05:16 +0000 (13:05 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 26 Feb 2013 13:05:16 +0000 (13:05 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@26915 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/ExpressionWidget.java

index e0a996f60f7216f755b843a2a3594dae3cd4e82f..e6cf9c57f0dd0a5cea85e84a82d58b1ec537af2a 100644 (file)
@@ -132,7 +132,7 @@ public class ExpressionWidget implements Widget {
         * expression change its type (false) \r
         */\r
        public void displayExpression(String expressionType, boolean original) {\r
-               if(expressionType == null) {\r
+               if(expressionType == null || parent.isDisposed()) {\r
                        return;\r
                }\r
 \r