Commons Net FTP listFiles() returns null

Just bringing this to the top of the Google QueueTM, if you’re using the listFiles() method of the org.apache.commons.net.ftp.FTPFile class and you’re seeing that listFiles() returns null when it shouldn’t be, make sure to upgrade to the latest and greatest version of commons-net (which is 1.2.2 right now). Using version 1.0.0 was causing NPE’s all over the place. I think this bug on issues.apache.org discusses the issue, but it’s more specific than what I was seeing.

One thought on “Commons Net FTP listFiles() returns null”

Leave a Reply to Suresh Cancel reply

Your email address will not be published. Required fields are marked *