logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carn...@apache.org
Subject svn commit: r427690 - /logging/log4j/trunk/src/java/org/apache/log4j/helpers/SyslogWriter.java
Date Tue, 01 Aug 2006 19:38:03 GMT
Author: carnold
Date: Tue Aug  1 12:38:03 2006
New Revision: 427690

URL: http://svn.apache.org/viewvc?rev=427690&view=rev
Log:
Bug 35743: SyslogAppender throws NullPointerException upon misconfiguration

Modified:
    logging/log4j/trunk/src/java/org/apache/log4j/helpers/SyslogWriter.java

Modified: logging/log4j/trunk/src/java/org/apache/log4j/helpers/SyslogWriter.java
URL: http://svn.apache.org/viewvc/logging/log4j/trunk/src/java/org/apache/log4j/helpers/SyslogWriter.java?rev=427690&r1=427689&r2=427690&view=diff
==============================================================================
--- logging/log4j/trunk/src/java/org/apache/log4j/helpers/SyslogWriter.java (original)
+++ logging/log4j/trunk/src/java/org/apache/log4j/helpers/SyslogWriter.java Tue Aug  1 12:38:03
2006
@@ -79,7 +79,7 @@
     DatagramPacket packet =
       new DatagramPacket(bytes, bytes.length, address, SYSLOG_PORT);
 
-    if (this.ds != null) {
+    if (this.ds != null && this.address != null) {
       ds.send(packet);
     }
     // clean up for next time



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


Mime
View raw message