cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [1/4] git commit: [CXF-6058] NPE guard in Header logging
Date Tue, 28 Oct 2014 18:26:55 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 5cf72fee4 -> 77a6da2ce


[CXF-6058] NPE guard in Header logging


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/cdc55cd4
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/cdc55cd4
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/cdc55cd4

Branch: refs/heads/master
Commit: cdc55cd46959d896a2e0e471a03a4733b1662394
Parents: 5cf72fe
Author: Daniel Kulp <dkulp@apache.org>
Authored: Tue Oct 28 13:57:05 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Tue Oct 28 13:57:05 2014 -0400

----------------------------------------------------------------------
 .../http/src/main/java/org/apache/cxf/transport/http/Headers.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/cdc55cd4/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Headers.java
----------------------------------------------------------------------
diff --git a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Headers.java b/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Headers.java
index 46267ed..6c8dacd 100644
--- a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Headers.java
+++ b/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Headers.java
@@ -277,7 +277,8 @@ public class Headers {
         for (String header : headers.keySet()) {
             List<?> headerList = headers.get(header);
             for (Object value : headerList) {
-                LOG.log(level, header + ": " + value.toString());
+                LOG.log(level, header + ": " 
+                    + (value == null ? "<null>" : value.toString()));
             }
         }
     }


Mime
View raw message