cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject cxf git commit: Minor fix to last commit
Date Fri, 21 Aug 2015 16:09:17 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 95a74475c -> ed2c83d53


Minor fix to last commit


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

Branch: refs/heads/master
Commit: ed2c83d53a01a6ce814a5fd4a8e325e19a5cd96c
Parents: 95a7447
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Fri Aug 21 17:09:10 2015 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Fri Aug 21 17:09:10 2015 +0100

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


http://git-wip-us.apache.org/repos/asf/cxf/blob/ed2c83d5/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 14a4cf2..505f7e3 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
@@ -192,7 +192,7 @@ public class ClaimsManager {
                                     STSException.REQUEST_FAILED);
                         }
                         
-                        if (targetPrincipal == null) {
+                        if (targetPrincipal == null || targetPrincipal.getName() == null)
{
                             LOG.log(Level.WARNING, "Null. Failed to map user '" + parameters.getPrincipal().getName()
                                     + "' [" + parameters.getRealm() + "] to realm '"
                                     + handlerRealmSupport.getHandlerRealm() + "'");


Mime
View raw message