aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Christophe Lariviere <jclariviere@arcbees.com>2014-12-12 13:40:50 -0500
committerJean-Christophe Lariviere <jclariviere@arcbees.com>2014-12-12 13:40:50 -0500
commit2a1b7c2425124f0975fe10412039f424475ea9aa (patch)
tree0ae29a9111bf22709e45a9e9d761202221239742
parent22179c8b50078e54d5629b5d99fdf6e34e0a5e5f (diff)
downloadgwtquery-2a1b7c2425124f0975fe10412039f424475ea9aa.tar.gz
gwtquery-2a1b7c2425124f0975fe10412039f424475ea9aa.zip
Fix missing condition
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java4
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;
}
});
}