You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/01/20 22:30:22 UTC

DO NOT REPLY [Bug 26296] New: - TelnetClient#disconnect() causes NullPointerException from Linux when connected to Windows 2000 Telnet Server

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26296>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26296

TelnetClient#disconnect() causes NullPointerException from Linux when connected to Windows 2000 Telnet Server

           Summary: TelnetClient#disconnect() causes NullPointerException
                    from Linux when connected to Windows 2000 Telnet Server
           Product: Commons
           Version: 1.1.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Net
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: carcher@yahoo.com


When calling TelnetClient#disconnect(), a NullPointerException is thrown because
either __input or __output is already null.  After fixing my working copy of the
source, an additional NPE is thrown in SocketClient#disconnect() because the
_socket_ variable is already null.  I've patched both files to check for null of
the affected intasnce variables before calling the close() methods and will be
submitting a patch.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org