Hi , I'm to trying to uploading file using org.apache.commons.net.ftp.FTPClient.When the file was Interrupted while writing into outputstream, i'm trying to call restart(offset) method for resuming from that interrupted point,that time i'm getting NullpointerException. This is the method i used to call for resuming if(transBytes > 0) { restartStatus = restart(transBytes); } private boolean restart(long offset) throws IOException { return FTPReply.isPositiveIntermediate(rest(Long.toString(offset))); } This is the Exception i'm getting after calling this method java.lang.NullPointerException at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:441) at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:520) at org.apache.commons.net.ftp.FTP.rest(FTP.java:1135) at ftptest.FTPUpload.callResumeRest(FTPUpload.java:332) Any help is more appreciated. Quick suggestion is more helpful to me.I'm more struggled in this place. Thanks in advance. MohanRaju