Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Leacu2017-10-13 13:07:08 -0400
committerPaul Leacu2017-10-13 13:07:08 -0400
commit239df7852d54eb73ee85951fd5c8ac8bd4024074 (patch)
treec8f0e77ee5e84648a57f5edff0dea714d14028c8
parentaa5e1d0312487dff3447ef1277659e17a1aa1622 (diff)
downloadorg.eclipse.bpmn2-modeler-239df7852d54eb73ee85951fd5c8ac8bd4024074.tar.gz
org.eclipse.bpmn2-modeler-239df7852d54eb73ee85951fd5c8ac8bd4024074.tar.xz
org.eclipse.bpmn2-modeler-239df7852d54eb73ee85951fd5c8ac8bd4024074.zip
[525835] Make sure a composite base widget is not disposed before attempting to set its visibility.
Change-Id: Ife23cba2ef1cb2fd23b426aec5ea95d6e9c47780 Signed-off-by: Paul Leacu <pleacu@redhat.com>
-rw-r--r--plugins/org.eclipse.bpmn2.modeler.core/src/org/eclipse/bpmn2/modeler/core/merrimac/clad/ListAndDetailCompositeBase.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/org.eclipse.bpmn2.modeler.core/src/org/eclipse/bpmn2/modeler/core/merrimac/clad/ListAndDetailCompositeBase.java b/plugins/org.eclipse.bpmn2.modeler.core/src/org/eclipse/bpmn2/modeler/core/merrimac/clad/ListAndDetailCompositeBase.java
index 4a1a0c73..602d32fa 100644
--- a/plugins/org.eclipse.bpmn2.modeler.core/src/org/eclipse/bpmn2/modeler/core/merrimac/clad/ListAndDetailCompositeBase.java
+++ b/plugins/org.eclipse.bpmn2.modeler.core/src/org/eclipse/bpmn2/modeler/core/merrimac/clad/ListAndDetailCompositeBase.java
@@ -173,6 +173,11 @@ public class ListAndDetailCompositeBase extends Composite implements ResourceSet
@Override
public void setVisible(boolean visible) {
+
+ // No need if already disposed.
+ if (isDisposed ())
+ return;
+
if (getLayoutData() instanceof GridData) {
((GridData)getLayoutData()).exclude = !visible;
}

Back to the top