Browse Source

more generic fix for issue #175

pull/177/head
Alexey Makeyev 9 years ago
parent
commit
0d235b9ca6
  1. 6
      json-path/src/main/java/com/jayway/jsonpath/internal/path/PredicatePathToken.java

6
json-path/src/main/java/com/jayway/jsonpath/internal/path/PredicatePathToken.java

@ -72,7 +72,11 @@ public class PredicatePathToken extends PathToken {
Predicate.PredicateContext ctx = new PredicateContextImpl(obj, root, configuration, evaluationContext.documentEvalCache()); Predicate.PredicateContext ctx = new PredicateContextImpl(obj, root, configuration, evaluationContext.documentEvalCache());
for (Predicate predicate : predicates) { for (Predicate predicate : predicates) {
if (!predicate.apply (ctx)) { try {
if (!predicate.apply(ctx)) {
return false;
}
} catch (InvalidPathException e) {
return false; return false;
} }
} }

Loading…
Cancel
Save