Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStéphane Bégaudeau2016-11-21 08:04:56 -0500
committerMelanie Bats2016-11-25 09:40:36 -0500
commit5180dd271bc559d5b9771dabe3ed5e71c0ee2a46 (patch)
tree4b70e89ba04af29f7a7ee634a7f185bbc71e175c /samples
parent278d3e3ff533aac1e5d5fe5311e61973e65fa228 (diff)
downloadorg.eclipse.eef-5180dd271bc559d5b9771dabe3ed5e71c0ee2a46.tar.gz
org.eclipse.eef-5180dd271bc559d5b9771dabe3ed5e71c0ee2a46.tar.xz
org.eclipse.eef-5180dd271bc559d5b9771dabe3ed5e71c0ee2a46.zip
Fix a widget is disposed exception with the color picker.
Change-Id: Idc9ef4fbdde6071d3eb43fa98950fcd90c908c85 Signed-off-by: Stéphane Bégaudeau <stephane.begaudeau@obeo.fr>
Diffstat (limited to 'samples')
-rw-r--r--samples/org.eclipse.eef.sample.custom.widget.colorpicker/src/org/eclipse/eef/sample/custom/widget/colorpicker/ColorPickerLifecycleManager.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/samples/org.eclipse.eef.sample.custom.widget.colorpicker/src/org/eclipse/eef/sample/custom/widget/colorpicker/ColorPickerLifecycleManager.java b/samples/org.eclipse.eef.sample.custom.widget.colorpicker/src/org/eclipse/eef/sample/custom/widget/colorpicker/ColorPickerLifecycleManager.java
index ae54ec41f..9a05e0f03 100644
--- a/samples/org.eclipse.eef.sample.custom.widget.colorpicker/src/org/eclipse/eef/sample/custom/widget/colorpicker/ColorPickerLifecycleManager.java
+++ b/samples/org.eclipse.eef.sample.custom.widget.colorpicker/src/org/eclipse/eef/sample/custom/widget/colorpicker/ColorPickerLifecycleManager.java
@@ -161,7 +161,9 @@ public class ColorPickerLifecycleManager extends AbstractEEFWidgetLifecycleManag
*/
@Override
public void aboutToBeHidden() {
- this.colorPicker.removeMouseListener(mouseListener);
+ if (!this.colorPicker.isDisposed()) {
+ this.colorPicker.removeMouseListener(mouseListener);
+ }
this.controller.removeNewValueConsumer();
super.aboutToBeHidden();
}

Back to the top