diff options
Diffstat (limited to 'samples')
-rw-r--r-- | samples/org.eclipse.eef.sample.custom.widget.colorpicker/src/org/eclipse/eef/sample/custom/widget/colorpicker/ColorPickerLifecycleManager.java | 4 |
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(); } |