diff options
author | Sarika Sinha | 2016-08-02 03:31:05 +0000 |
---|---|---|
committer | Sarika Sinha | 2016-08-17 03:44:44 +0000 |
commit | a0f3181838add7a0aa3788866a63929e3121eae8 (patch) | |
tree | cc6fb1c94656ec1b3d1cd52ef2c019b9b7cce77d /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui | |
parent | 72ffa77e3f8a4555ca2c3aec6ced697644546044 (diff) | |
download | eclipse.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
Change-Id: I8e3ecd415e9dd2860e1df8269b8ce7d09a3e5862
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/InternalTreeModelViewer.java | 4 |
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; |