cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [1/5] git commit: [CXF-6058] NPE guard in Header logging
Date Tue, 28 Oct 2014 18:30:15 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes 2d13ae6a2 -> 0503a5ae4


[CXF-6058] NPE guard in Header logging

Conflicts:
	rt/transports/http/src/main/java/org/apache/cxf/transport/http/Headers.java


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

Branch: refs/heads/2.7.x-fixes
Commit: f56fbcebe75167228da960cf92eec65d62f9b745
Parents: 2d13ae6
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 14:29:55 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/f56fbceb/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 4ba6c52..814c082 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
@@ -254,7 +254,8 @@ public class Headers {
         for (String header : headers.keySet()) {
             List<String> headerList = headers.get(header);
             for (String value : headerList) {
-                LOG.log(level, header + ": " + value);
+                LOG.log(level, header + ": "
+                    + (value == null ? "<null>" : value.toString()));
             }
         }
     }


Mime
View raw message