Yuliya Polyeno created NET-473:
----------------------------------

             Summary: FTPClient setSoTimeout (int time) will result in 
NullPointerException
                 Key: NET-473
                 URL: https://issues.apache.org/jira/browse/NET-473
             Project: Commons Net
          Issue Type: Bug
          Components: FTP
            Reporter: Yuliya Polyeno
            Priority: Minor


After creating FTPClient you are able to invoke 
org.apache.commons.net.SocketClient-> setSoTimeout () method which will result 
in NullPointerException.

It happens because in SocketClient class Socket object is initialized with 
null. Shouldn't it be more sensible to create new socket from the socketFactory 
and don't wait for socket creation till connect() method, because it will be 
imposiible to do any configuration to the socket until you're connected.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to