From: lehtonen Date: Sun, 20 Jun 2010 10:13:17 +0000 (+0000) Subject: Added missing isDisposed check. X-Git-Tag: simantics-1.2.0~206 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=f2d31fc2bc4aff1c1aa571f1aafedcd6ac296af2;p=simantics%2Fsysdyn.git Added missing isDisposed check. git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16245 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/TextWidget.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/TextWidget.java index 4fb58101..af99f2f3 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/TextWidget.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/TextWidget.java @@ -72,6 +72,8 @@ public class TextWidget implements Widget { public void execute(final String text) { if(text == null) return; + if (isDisposed()) + return; textWidget.getDisplay().asyncExec(new Runnable() { @@ -112,7 +114,7 @@ public class TextWidget implements Widget { Object object = null; triple = (Triple) ((ReadFactoryImpl)readFactory).getIdentity(null); if(triple == null) return; - + if(!text.equals("")) { if(readFactory instanceof DoublePropertyFactory) { object = Double.parseDouble(text);