cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [3/4] cxf git commit: NPE fix
Date Mon, 15 Feb 2016 16:21:25 GMT
NPE fix


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

Branch: refs/heads/3.1.x-fixes
Commit: 710beae44bb62a50e7d24337a2f2d550abf782c1
Parents: fe9e4fb
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Mon Feb 15 16:06:52 2016 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Mon Feb 15 16:21:16 2016 +0000

----------------------------------------------------------------------
 .../src/main/java/org/apache/cxf/sts/claims/ClaimsManager.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/710beae4/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/ClaimsManager.java
----------------------------------------------------------------------
diff --git a/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/ClaimsManager.java
b/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/ClaimsManager.java
index 6534394..0bb2900 100644
--- a/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/ClaimsManager.java
+++ b/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/ClaimsManager.java
@@ -183,6 +183,10 @@ public class ClaimsManager {
         ProcessedClaimCollection returnCollection = new ProcessedClaimCollection();
         Principal originalPrincipal = parameters.getPrincipal();
         
+        if (claimHandlers == null) {
+            return returnCollection;
+        }
+        
         for (ClaimsHandler handler : claimHandlers) {
             
             ClaimCollection supportedClaims = 


Mime
View raw message