[java-identity-provider COMMIT] /trunk/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/impl/InexactPrincipalEva...

noreply at shibboleth.net noreply at shibboleth.net
Fri Aug 16 10:35:00 EDT 2013


Author: scantor
Date: Fri Aug 16 10:34:59 2013
New Revision: 4698

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=4698&view=rev
Log:
Fix null check.

Modified:
    trunk/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/impl/InexactPrincipalEvalPredicateFactory.java

Modified: trunk/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/impl/InexactPrincipalEvalPredicateFactory.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/impl/InexactPrincipalEvalPredicateFactory.java?rev=4698&r1=4697&r2=4698&view=diff
==============================================================================
--- trunk/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/impl/InexactPrincipalEvalPredicateFactory.java (original)
+++ trunk/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/impl/InexactPrincipalEvalPredicateFactory.java Fri Aug 16 10:34:59 2013
@@ -80,7 +80,7 @@
         matchingRules.clear();
         
         for (Map.Entry<String,Set<String>> e : rules.entrySet()) {
-            if (Strings.isNullOrEmpty(e.getKey()) && e.getValue() != null) {
+            if (!Strings.isNullOrEmpty(e.getKey()) && e.getValue() != null) {
                 matchingRules.putAll(e.getKey(), new HashSet(Collections2.filter(e.getValue(), Predicates.notNull())));
             }
         }



More information about the commits mailing list