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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to