cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject cxf-fediz git commit: NPE guard
Date Thu, 31 Mar 2016 15:26:38 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/master 2e119aa15 -> 12e5c2331


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/12e5c233
Tree: http://git-wip-us.apache.org/repos/asf/cxf-fediz/tree/12e5c233
Diff: http://git-wip-us.apache.org/repos/asf/cxf-fediz/diff/12e5c233

Branch: refs/heads/master
Commit: 12e5c23315a1a664661b2cd269c04467ed66afae
Parents: 2e119aa
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:21:56 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/12e5c233/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 3011ccb..cc94fee 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
@@ -152,8 +152,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