Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2004-03-15 21:37:33 +0000
committerJean Michel-Lemieux2004-03-15 21:37:33 +0000
commit95a26bc03a62c2ad174c99c8674a1f57cefaae21 (patch)
tree60cef170970735d9107f82d767d43611b7a4be61
parent990b02a362627892eeb266878b061919f25b0a7f (diff)
downloadeclipse.platform.team-95a26bc03a62c2ad174c99c8674a1f57cefaae21.tar.gz
eclipse.platform.team-95a26bc03a62c2ad174c99c8674a1f57cefaae21.tar.xz
eclipse.platform.team-95a26bc03a62c2ad174c99c8674a1f57cefaae21.zip
getChanges should return empty array. This caused NPE in clients.
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/RefreshEvent.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/RefreshEvent.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/RefreshEvent.java
index 8aa209bab..dae60d3bc 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/RefreshEvent.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/RefreshEvent.java
@@ -43,7 +43,7 @@ public class RefreshEvent implements IRefreshEvent {
}
public SyncInfo[] getChanges() {
- return changes;
+ return changes != null ? changes : new SyncInfo[0];
}
public void setChanges(SyncInfo[] changes) {

Back to the top