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 24440] - ftp task, rmdir fails with NullPointerException if target directory is empty
Date Thu, 06 Nov 2003 08:17:18 GMT
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 antoine@apache.org  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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message