Menu

#36 FTPFileFactory getParserInstance returns null instead of Unix Parser

v1.0_(example)
closed-fixed
nobody
None
5
2016-02-25
2014-12-29
matthewtckr
No

Using ftp4che 0.7.1, using Tumbleweed SecureTransport ftpd 4.9.2 on Windows XP SP3, the FTP Server responds to the SYST command with a "CYGWIN" type.

In the FTPFileFactory.getParserInstance() method, the final else block logs that the method will return a UnixFileParser as a default, but then returns null, instead of a new UnixFileParser(locale) object.

This causes a NullPointerException to be thrown later in the FTPFileFactory.parse(List<String>, String) method (line 85).

Discussion

  • Arnold Maderthaner

    fixed in 1.0

     
  • Arnold Maderthaner

    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB