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:12:52 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 5a5d71988 -> 2a2ad32d6


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/2a2ad32d
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/2a2ad32d
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/2a2ad32d

Branch: refs/heads/3.0.x-fixes
Commit: 2a2ad32d681234a00eac97002848fde7a63968e5
Parents: 5a5d719
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:12:44 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/2a2ad32d/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 f169e39..d448ed2 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