Fixed a problem with matching function boolean logic.
[java-idp.git] / src / edu / internet2 / middleware / shibboleth / aa / arp / provider / ExactSharMatchFunction.java
index cfffb4a..a3f89cf 100755 (executable)
@@ -68,7 +68,7 @@ public class ExactSharMatchFunction implements MatchFunction {
        public boolean match(Object arpComponent, Object requestComponent)
                throws MatchingException
        {
-               if (!(arpComponent instanceof String) && !(requestComponent instanceof String)) {
+               if (!(arpComponent instanceof String) || !(requestComponent instanceof String)) {
                        log.error("Invalid use of ARP matching function (ExacthSharMatchFunction).");
                        throw new MatchingException("Invalid use of ARP matching function (ExacthSharMatchFunction).");
                }