Issue Details (XML | Word | Printable)

Key: NET-84
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Clark E. Archer
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Net

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

Created: 21/Jan/04 05:30 AM   Updated: 20/Dec/06 11:02 AM
Return to search
Component/s: None
Affects Version/s: 1.1
Fix Version/s: 2.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File disconnect_npe_patch.txt 2004-01-21 05:45 AM Clark E. Archer 2 kB
Environment:
Operating System: Linux
Platform: PC

Bugzilla Id: 26296
Resolution Date: 20/Dec/06 11:02 AM


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.