From 2a1b7c2425124f0975fe10412039f424475ea9aa Mon Sep 17 00:00:00 2001 From: Jean-Christophe Lariviere Date: Fri, 12 Dec 2014 13:40:50 -0500 Subject: [PATCH] Fix missing condition --- .../src/main/java/com/google/gwt/query/client/GQuery.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java index 54b84b5e..aa82446d 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java @@ -3381,7 +3381,7 @@ public class GQuery implements Lazy { return parentsUntil(new Predicate(){ @Override public boolean f(Element e, int index) { - return $(e).is(selector); + return selector != null && $(e).is(selector); } }); } @@ -3394,7 +3394,7 @@ public class GQuery implements Lazy { return parentsUntil(new Predicate() { @Override public boolean f(Element e, int index) { - return e == node; + return node != null && e == node; } }); } -- 2.39.5