DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24440>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24440 ftp task, rmdir fails with NullPointerException if target directory is empty ------- Additional Comments From [EMAIL PROTECTED] 2003-11-06 08:17 ------- I am using commons-net-1.0.0.jar. the javadoc of : org.apache.commons.net.ftp.FTPClient.listFiles(). says : If the given current directory contains no files null is returned, otherwise an array of FTPFile instances representing the files in the directory is returned. I have seen that this was documented similarly in the revision used to build commons-net-1.0.0 Therefore this was really a bug in ant, but it is strange that I did not get hit in doing my tests. Thanks for reporting the bug. I also checked that FTPClient.listFiles() returning null is checked in all other call stacks, so we should be on the safe side. ref : http://cvs.apache.org/viewcvs.cgi/jakarta-commons/net/src/java/org/apache/commons/net/ftp/FTPClient.java?rev=1.13&content-type=text/vnd.viewcvs-markup --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]