Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2016-08-02 03:31:05 +0000
committerSarika Sinha2016-08-17 03:44:44 +0000
commita0f3181838add7a0aa3788866a63929e3121eae8 (patch)
treecc6fb1c94656ec1b3d1cd52ef2c019b9b7cce77d
parent72ffa77e3f8a4555ca2c3aec6ced697644546044 (diff)
downloadeclipse.platform.debug-a0f3181838add7a0aa3788866a63929e3121eae8.tar.gz
eclipse.platform.debug-a0f3181838add7a0aa3788866a63929e3121eae8.tar.xz
eclipse.platform.debug-a0f3181838add7a0aa3788866a63929e3121eae8.zip
Bug 499011 - SWTException: Widget is disposed in Variables view
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/InternalTreeModelViewer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/InternalTreeModelViewer.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/InternalTreeModelViewer.java
index a1437560b..38f00cd75 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/InternalTreeModelViewer.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/InternalTreeModelViewer.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2015 IBM Corporation and others.
+ * Copyright (c) 2006, 2016 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -1637,7 +1637,7 @@ public class InternalTreeModelViewer extends TreeViewer implements IInternalTree
@Override
public TreePath getTopElementPath() {
TreeItem topItem = ((Tree)getControl()).getTopItem();
- if (topItem != null && topItem.getData() != null) {
+ if (topItem != null && !topItem.isDisposed() && topItem.getData() != null) {
return getTreePathFromItem(topItem);
}
return null;

Back to the top