Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2002-02-12 08:44:32 -0500
committerMichael Valenta2002-02-12 08:44:32 -0500
commitafda0727e75586e81dbe25eb4c6e47078237c2e0 (patch)
tree90ebaffa07806a3dfcdd93b535d79fc5c1c0af78
parent4189c7e9173d99e85b5365c7872e24afcaf257e0 (diff)
downloadeclipse.platform.team-afda0727e75586e81dbe25eb4c6e47078237c2e0.tar.gz
eclipse.platform.team-afda0727e75586e81dbe25eb4c6e47078237c2e0.tar.xz
eclipse.platform.team-afda0727e75586e81dbe25eb4c6e47078237c2e0.zip
9417: NPE in RemoteFile.getContents()
- Added exception to give more information
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/RemoteFile.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/RemoteFile.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/RemoteFile.java
index 9d4dcf874..4876a00ba 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/RemoteFile.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/RemoteFile.java
@@ -25,6 +25,7 @@ import org.eclipse.team.ccvs.core.ILogEntry;
import org.eclipse.team.core.TeamException;
import org.eclipse.team.core.sync.IRemoteResource;
import org.eclipse.team.internal.ccvs.core.CVSException;
+import org.eclipse.team.internal.ccvs.core.Policy;
import org.eclipse.team.internal.ccvs.core.client.Command;
import org.eclipse.team.internal.ccvs.core.client.Session;
import org.eclipse.team.internal.ccvs.core.client.Update;
@@ -171,6 +172,8 @@ public class RemoteFile extends RemoteResource implements ICVSRemoteFile, ICVSFi
throw new CVSServerException(status);
}
}
+ if (contents == null)
+ throw new CVSException(Policy.bind("RemoteFile.noContentsReceived", getRemoteLocation(null)));
return new ByteArrayInputStream(contents);
} catch(CVSException e) {
return null;

Back to the top