diff options
author | Sarika Sinha | 2017-12-12 06:00:52 +0000 |
---|---|---|
committer | Sarika Sinha | 2017-12-12 06:00:52 +0000 |
commit | 9c189f2dd13f1bbccc1037f7a535d78eb244656d (patch) | |
tree | 137ae68644e1be5a26d50023b975590193f1c9f4 | |
parent | ca4c3de585c743486c2df55b551ec3f2dfd9b6a2 (diff) | |
download | eclipse.platform.debug-9c189f2dd13f1bbccc1037f7a535d78eb244656d.tar.gz eclipse.platform.debug-9c189f2dd13f1bbccc1037f7a535d78eb244656d.tar.xz eclipse.platform.debug-9c189f2dd13f1bbccc1037f7a535d78eb244656d.zip |
Bug 528461 - Linking Prototype gives widget disposed error
Change-Id: Ifb4e2ebe43631a5c611711a64c0f2f7998c70d15
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/ui/ProtoypeTab.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/ProtoypeTab.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/ProtoypeTab.java index 84d243876..d852b6979 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/ProtoypeTab.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/ProtoypeTab.java @@ -7,6 +7,7 @@ * * Contributors: * Obeo - initial API and implementation + * IBM Corporation - Bug fixes *******************************************************************************/ package org.eclipse.debug.ui; @@ -473,9 +474,12 @@ public class ProtoypeTab extends AbstractLaunchConfigurationTab { getShell().getDisplay().asyncExec(new Runnable() { @Override public void run() { - TreeColumn[] columns = fAttributesTreeViewer.getTree().getColumns(); - for (TreeColumn treeColumn : columns) { - treeColumn.pack(); + Tree tree = fAttributesTreeViewer.getTree(); + if (tree != null && !tree.isDisposed()) { + TreeColumn[] columns = tree.getColumns(); + for (TreeColumn treeColumn : columns) { + treeColumn.pack(); + } } } }); |