Ancient FTP error surfaced

Since 1.3.1.3, in this version FTPIgnore is removed, people can get the following error:

FTPCommand - create directory : 2009
 Fatal error, an unknown error occured.
 java.lang.NullPointerException
     at nl.mk.jsunnyreports.ftp.FTPEngine.traverse(FTPEngine.java:142)
     at nl.mk.jsunnyreports.ftp.FTPEngine.traverse(FTPEngine.java:143)
     at nl.mk.jsunnyreports.ftp.FTPEngine.traverse(FTPEngine.java:143)
     at nl.mk.jsunnyreports.ftp.FTPEngine.doFTP(FTPEngine.java:193)
     at nl.mk.jsunnyreports.JSunnyReports.main(JSunnyReports.java:152)
 Class: nl.mk.jsunnyreports.ftp.FTPEngine Method: traverse. Line: 142
 Class: nl.mk.jsunnyreports.ftp.FTPEngine Method: traverse. Line: 143
 Class: nl.mk.jsunnyreports.ftp.FTPEngine Method: traverse. Line: 143
 Class: nl.mk.jsunnyreports.ftp.FTPEngine Method: doFTP. Line: 193
 Class: nl.mk.jsunnyreports.JSunnyReports Method: main. Line: 152

 

This issue is caused by not checking an object if its null. And to make matters worse, this error has been sitting in our code since the beginning. Somehow in the previous version the nullpointer exception was wiped under the carpet.

The code is fixed now and tested. I will release 1.3.2.0 tonight.