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