Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2007-04-18 13:53:28 +0000
committerDarin Wright2007-04-18 13:53:28 +0000
commit73d3bffd2ecf256cdf1ecb3c9ac890c765c70f2f (patch)
tree4348ae53bbe4948ffd376acc6283080f205fedfe
parent34659b87ab55ac16ec5c6dc83fcd487393e95b88 (diff)
downloadeclipse.platform.debug-I20070417_rebuild.tar.gz
eclipse.platform.debug-I20070417_rebuild.tar.xz
eclipse.platform.debug-I20070417_rebuild.zip
Bug 182657 AssertionFailedException running Ant UI test suitev20070418I20070417_rebuild
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/TreeModelContentProvider.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/TreeModelContentProvider.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/TreeModelContentProvider.java
index b0aa4971f..798c8fca4 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/TreeModelContentProvider.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/TreeModelContentProvider.java
@@ -334,9 +334,9 @@ public class TreeModelContentProvider extends ModelContentProvider implements IL
for (int i = 0; i < items.length; i++) {
buildViewerState(EMPTY_TREE_PATH, delta, items[i], set, i);
}
- // add memento for top item
+ // add memento for top item if it is mapped to an element
TreeItem topItem = tree.getTopItem();
- if (topItem != null) {
+ if (topItem != null && topItem.getData() != null) {
TreePath path = ((InternalTreeModelViewer)getTreeViewer()).getTreePathFromItem(topItem);
ModelDelta parentDelta = delta;
for (int i = 0; i < path.getSegmentCount(); i++) {

Back to the top