cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [2/2] cxf-fediz git commit: NPE guard
Date Thu, 31 Mar 2016 15:26:55 GMT
NPE guard


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

Branch: refs/heads/1.2.x-fixes
Commit: 089419373376b1a6a9c2d3f9c4453df05b7d8000
Parents: 4037734
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Thu Mar 31 16:21:56 2016 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Thu Mar 31 16:26:47 2016 +0100

----------------------------------------------------------------------
 .../cxf/fediz/core/processor/FederationProcessorImpl.java    | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/08941937/plugins/core/src/main/java/org/apache/cxf/fediz/core/processor/FederationProcessorImpl.java
----------------------------------------------------------------------
diff --git a/plugins/core/src/main/java/org/apache/cxf/fediz/core/processor/FederationProcessorImpl.java
b/plugins/core/src/main/java/org/apache/cxf/fediz/core/processor/FederationProcessorImpl.java
index 808be36..b7d013a 100644
--- a/plugins/core/src/main/java/org/apache/cxf/fediz/core/processor/FederationProcessorImpl.java
+++ b/plugins/core/src/main/java/org/apache/cxf/fediz/core/processor/FederationProcessorImpl.java
@@ -153,8 +153,12 @@ public class FederationProcessorImpl extends AbstractFedizProcessor {
         }
         
         if (LOG.isDebugEnabled()) {
-            LOG.debug("RST: {}", DOM2Writer.nodeToString(rst));
-            LOG.debug("Lifetime: {}", DOM2Writer.nodeToString(lifetimeElem));
+            if (rst != null) {
+                LOG.debug("RST: {}", DOM2Writer.nodeToString(rst));
+            }
+            if (lifetimeElem != null) {
+                LOG.debug("Lifetime: {}", DOM2Writer.nodeToString(lifetimeElem));
+            }
         }
         LOG.debug("Tokentype: {}", tt);
         


Mime
View raw message