You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2002/12/09 21:41:46 UTC
DO NOT REPLY [Bug 15198] New: -
TelnetAppender: NullPointerException if SocketHandler not initialized
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=15198>.
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=15198
TelnetAppender: NullPointerException if SocketHandler not initialized
Summary: TelnetAppender: NullPointerException if SocketHandler
not initialized
Product: Log4j
Version: 1.2
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Appender
AssignedTo: log4j-dev@jakarta.apache.org
ReportedBy: jay.funnell@matrikon.com
The TelnetAppender creates an instance of an inner class
called "SocketHandler". In some cases this can be null (for example, if the
port is not set). As a result, it throws a NullPointerException when append()
is called.
To fix this problem, the "append()" method should first check to see if the
variable "sh" is null before proceeding.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>