ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32087] New: - stcheckout local directory cleanup throws null pointer exception
Date Fri, 05 Nov 2004 22:05:01 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32087>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32087

stcheckout local directory cleanup throws null pointer exception

           Summary: stcheckout local directory cleanup throws null pointer
                    exception
           Product: Ant
           Version: 1.6.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: robert.evans@acm.org


The stcheckout task throws a null pointer exception when it tries to clean the
local folders.

Here is a patch that could be applied to fix the problem. Can someone please
apply it since I am not a committer. Thanks.

---
src/main/org/apache/tools/ant/taskdefs/optional/starteam/StarTeamCheckout.java 
2004-03-09 08:48:37.0 -0800     1.26
+++ src/main/org/apache/tools/ant/taskdefs/optional/starteam/StarTeamChe
+++ ckout.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