commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <>
Subject [jira] [Resolved] (NET-473) FTPClient setSoTimeout (int time) will result in NullPointerException
Date Sat, 14 Jul 2012 12:50:34 GMT


Sebb resolved NET-473.

       Resolution: Fixed
    Fix Version/s: 3.2

Javadoc clarified.

NET-473 FTPClient setSoTimeout (int time) will result in NullPointerException. Clarify Javadoc.

> FTPClient setSoTimeout (int time) will result in NullPointerException
> ---------------------------------------------------------------------
>                 Key: NET-473
>                 URL:
>             Project: Commons Net
>          Issue Type: Bug
>          Components: FTP
>            Reporter: Yuliya Polyeno
>            Priority: Minor
>             Fix For: 3.2
> After creating FTPClient you are able to invoke>
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:!default.jspa
For more information on JIRA, see:


View raw message