commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel F. Savarese" <...@savarese.org>
Subject Re: FTPFile throws NullPointerException!!
Date Sat, 05 Jul 2003 16:06:17 GMT

In message <20030705081837.363CE7259@sitemail.everyone.net>, 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.



Mime
View raw message