diff options
-rw-r--r-- | gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java | 4 |
1 files 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<GQuery, LazyGQuery> { 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<GQuery, LazyGQuery> { return parentsUntil(new Predicate() { @Override public boolean f(Element e, int index) { - return e == node; + return node != null && e == node; } }); } |