Hi,

I am usinf the FTPClient class to handle ftp functions in my app.
I tried the following,
FTPClient ftp  = new FTPClient();
ftp.connect(host);
ftp.login(user,password);

I am able to connect to the remote ftp host and perform operations such 
as change directory.

Then i do ..
FTPFile ftpFile[] = ftp.listFiles();

But when i do..
System.out.println(ftpFile.length);

I get a java.lang.NullPointerException

I cant seem to resolve this issue and I have arrived at a stopping point.


Any help will be greatly appreciated.

Regards

Vijay



_____________________________________________________________
Thank you for choosing LinuxQuestions.
http://www.linuxquestions.org

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to