You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Bob Evans <Bo...@borland.com> on 2004/11/02 20:45:43 UTC
Fix for problem with starteam checkout task
Hi,
I was recently trying to use the starteam checkout task in the latest
pull from cvs. It was throwing a null pointer exception cleaning up
local folders. Here is a patch to protect against the null pointer.
Thanks,
Bob Evans
Borland Software Corporation
---
src/main/org/apache/tools/ant/taskdefs/optional/starteam/StarTeamCheckou
t.java 2004-03-09 08:48:37.0 -0800 1.26
+++
src/main/org/apache/tools/ant/taskdefs/optional/starteam/StarTeamCheckou
t.java 2004-11-01 16:56:20.39 -0800
@@ -575,7 +575,7 @@
* not used in this implementation
*/
UnmatchedFileMap init(java.io.File localFolder, Folder
remoteFolder) {
- if (!localFolder.exists()) {
+ if (!localFolder.exists() || localFolder.list() == null) {
return this;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org