tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlmonte...@apache.org
Subject svn commit: r1538580 - /tomee/tomee/trunk/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/EndWebBeansListener.java
Date Mon, 04 Nov 2013 12:43:36 GMT
Author: jlmonteiro
Date: Mon Nov  4 12:43:35 2013
New Revision: 1538580

URL: http://svn.apache.org/r1538580
Log:
Fix a potential NPE

Modified:
    tomee/tomee/trunk/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/EndWebBeansListener.java

Modified: tomee/tomee/trunk/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/EndWebBeansListener.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/EndWebBeansListener.java?rev=1538580&r1=1538579&r2=1538580&view=diff
==============================================================================
--- tomee/tomee/trunk/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/EndWebBeansListener.java
(original)
+++ tomee/tomee/trunk/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/EndWebBeansListener.java
Mon Nov  4 12:43:35 2013
@@ -87,7 +87,7 @@ public class EndWebBeansListener impleme
         }
 
         if (logger.isDebugEnabled()) {
-            logger.debug("Destroying a request : [{0}]", event.getServletRequest().getRemoteAddr());
+            logger.debug("Destroying a request : [{0}]", event == null ? "null" : event.getServletRequest().getRemoteAddr());
         }
 
         final Object oldContext;



Mime
View raw message