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 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 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

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