Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Barnes2005-02-17 19:29:16 +0000
committerKevin Barnes2005-02-17 19:29:16 +0000
commit3203b50ffe8e6ca11af00d15695a3aa7230d1a98 (patch)
tree4039ce83318c55f25752e2f5dd5d5d2dac9ca349 /org.eclipse.debug.ui
parent8a503ce99642a3b91da6e95f994f4e1375c8eaff (diff)
downloadeclipse.platform.debug-3203b50ffe8e6ca11af00d15695a3aa7230d1a98.tar.gz
eclipse.platform.debug-3203b50ffe8e6ca11af00d15695a3aa7230d1a98.tar.xz
eclipse.platform.debug-3203b50ffe8e6ca11af00d15695a3aa7230d1a98.zip
Bug 84111 - Exception while running test suite
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/RemoteTreeViewer.java18
1 files changed, 10 insertions, 8 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/RemoteTreeViewer.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/RemoteTreeViewer.java
index 51195d7ac..fa45ada11 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/RemoteTreeViewer.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/RemoteTreeViewer.java
@@ -360,14 +360,16 @@ public class RemoteTreeViewer extends TreeViewer {
if (widget != null) {
final Item[] currentChildren = getChildren(widget);
if (offset < currentChildren.length) {
- preservingSelection(new Runnable() {
- public void run() {
- for (int i = offset; i < currentChildren.length; i++) {
- disassociate(currentChildren[i]);
- currentChildren[i].dispose();
- }
- }
- });
+ preservingSelection(new Runnable() {
+ public void run() {
+ for (int i = offset; i < currentChildren.length; i++) {
+ if (currentChildren[i].getData() != null) {
+ disassociate(currentChildren[i]);
+ }
+ currentChildren[i].dispose();
+ }
+ }
+ });
}
}
}

Back to the top