cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1470436 - /cxf/fediz/trunk/services/sts/src/main/java/org/apache/cxf/fediz/service/sts/FileClaimsHandler.java
Date Mon, 22 Apr 2013 10:33:45 GMT
Author: coheigea
Date: Mon Apr 22 10:33:44 2013
New Revision: 1470436

URL: http://svn.apache.org/r1470436
Log:
Preventing possible NPE

Modified:
    cxf/fediz/trunk/services/sts/src/main/java/org/apache/cxf/fediz/service/sts/FileClaimsHandler.java

Modified: cxf/fediz/trunk/services/sts/src/main/java/org/apache/cxf/fediz/service/sts/FileClaimsHandler.java
URL: http://svn.apache.org/viewvc/cxf/fediz/trunk/services/sts/src/main/java/org/apache/cxf/fediz/service/sts/FileClaimsHandler.java?rev=1470436&r1=1470435&r2=1470436&view=diff
==============================================================================
--- cxf/fediz/trunk/services/sts/src/main/java/org/apache/cxf/fediz/service/sts/FileClaimsHandler.java
(original)
+++ cxf/fediz/trunk/services/sts/src/main/java/org/apache/cxf/fediz/service/sts/FileClaimsHandler.java
Mon Apr 22 10:33:44 2013
@@ -63,7 +63,7 @@ public class FileClaimsHandler implement
     public ClaimCollection retrieveClaimValues(RequestClaimCollection claims,
             ClaimsParameters parameters) {
 
-        if (getUserClaims() == null) {
+        if (getUserClaims() == null || parameters.getPrincipal() == null) {
             return new ClaimCollection();
         }
 



Mime
View raw message