In message <[EMAIL PROTECTED]>, vijay k v writes: >Then i do .. >FTPFile ftpFile[] = ftp.listFiles(); > >But when i do.. >System.out.println(ftpFile.length); > >I get a java.lang.NullPointerException
http://jakarta.apache.org/commons/net/apidocs/org/apache/commons/net/ftp/FTPClient.html#listFiles() Returns: The list of file information contained in the current working directory. ==> null if the list could not be obtained or if there are no files in the directory. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
