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 part II
Date Thu, 31 Mar 2016 15:46:23 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/1.2.x-fixes 089419373 -> 73fd56fb0


NPE guard part II


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

Branch: refs/heads/1.2.x-fixes
Commit: 73fd56fb0e0209eee473200b0ff93e0655a660ad
Parents: 0894193
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Thu Mar 31 16:46:14 2016 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Thu Mar 31 16:46:14 2016 +0100

----------------------------------------------------------------------
 .../cxf/fediz/core/processor/FederationProcessorImpl.java       | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/73fd56fb/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 b7d013a..3e6f4b4 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
@@ -161,6 +161,11 @@ public class FederationProcessorImpl extends AbstractFedizProcessor {
             }
         }
         LOG.debug("Tokentype: {}", tt);
+
+        if (rst == null) {
+            LOG.warn("RequestedSecurityToken element not found in wresult");
+            throw new ProcessingException(TYPE.BAD_REQUEST);
+        }
         
         LifeTime lifeTime = null;
         if (lifetimeElem != null) {


Mime
View raw message