Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames2002-06-11 17:35:25 -0400
committerjames2002-06-11 17:35:25 -0400
commita18a5d078b8b40e0cbcd236398a369c8505d0979 (patch)
treedee3b0965b143d2200cfb9d4aa2498e7c9630989
parentff850634bff4dd30a2a3ae0dc89d70d996db6726 (diff)
downloadeclipse.platform.team-a18a5d078b8b40e0cbcd236398a369c8505d0979.tar.gz
eclipse.platform.team-a18a5d078b8b40e0cbcd236398a369c8505d0979.tar.xz
eclipse.platform.team-a18a5d078b8b40e0cbcd236398a369c8505d0979.zip
18380: NPE from SyncView.isEmpty()
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/sync/SyncView.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/sync/SyncView.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/sync/SyncView.java
index 8d5823973..9df988b7c 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/sync/SyncView.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/sync/SyncView.java
@@ -196,6 +196,7 @@ public class SyncView extends ViewPart {
}
private boolean isEmpty(DiffNode node) {
+ if (node == null) return true;
if (node.getKind() != 0) return false;
IDiffElement[] children = node.getChildren();
for (int i = 0; i < children.length; i++) {

Back to the top