[java-identity-provider COMMIT] /trunk/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolve...

noreply at shibboleth.net noreply at shibboleth.net
Tue Jan 14 13:47:58 EST 2014


Author: scantor
Date: Tue Jan 14 13:47:58 2014
New Revision: 5196

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=5196&view=rev
Log:
Fix NPE.

Modified:
    trunk/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/impl/ad/mapped/SourceValue.java

Modified: trunk/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/impl/ad/mapped/SourceValue.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/impl/ad/mapped/SourceValue.java?rev=5196&r1=5195&r2=5196&view=diff
==============================================================================
--- trunk/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/impl/ad/mapped/SourceValue.java (original)
+++ trunk/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/impl/ad/mapped/SourceValue.java Tue Jan 14 13:47:58 2014
@@ -61,7 +61,7 @@
         value = StringSupport.trimOrNull(theValue);
         ignoreCase = theIgnoreCase;
         partialMatch = thePartialMatch;
-        if (!partialMatch) {
+        if (!partialMatch && value != null) {
             int flags = 0;
             if (ignoreCase) {
                 flags = Pattern.CASE_INSENSITIVE;



More information about the commits mailing list