You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2016/03/31 17:26:38 UTC
cxf-fediz git commit: NPE guard
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 <co...@apache.org>
Authored: Thu Mar 31 16:21:56 2016 +0100
Committer: Colm O hEigeartaigh <co...@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);