Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2017-12-12 01:00:52 -0500
committerSarika Sinha2017-12-12 01:00:52 -0500
commit9c189f2dd13f1bbccc1037f7a535d78eb244656d (patch)
tree137ae68644e1be5a26d50023b975590193f1c9f4 /org.eclipse.debug.ui/ui/org/eclipse/debug/ui
parentca4c3de585c743486c2df55b551ec3f2dfd9b6a2 (diff)
downloadeclipse.platform.debug-9c189f2dd13f1bbccc1037f7a535d78eb244656d.tar.gz
eclipse.platform.debug-9c189f2dd13f1bbccc1037f7a535d78eb244656d.tar.xz
eclipse.platform.debug-9c189f2dd13f1bbccc1037f7a535d78eb244656d.zip
Bug 528461 - Linking Prototype gives widget disposed error
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/ProtoypeTab.java10
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();
+ }
}
}
});

Back to the top