NullPointerException in FileLister fixed