ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Evans" <Bob.Ev...@borland.com>
Subject Fix for problem with starteam checkout task
Date Tue, 02 Nov 2004 19:45:43 GMT
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


Mime
View raw message