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:16:44 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes 986cae31a -> 31aa2e04c


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

Branch: refs/heads/2.7.x-fixes
Commit: 31aa2e04c4bd58735f307f9077f213d9784eb18d
Parents: 986cae3
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:16:37 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/31aa2e04/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 26a91d7..de0f338 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
@@ -191,7 +191,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