aboutsummaryrefslogtreecommitdiffstats
path: root/gwtquery-core
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2011-07-14 12:16:28 +0000
committerManolo Carrasco <manolo@apache.org>2011-07-14 12:16:28 +0000
commit9956daf4ec363fd4e213a7a9e544c36aef72a907 (patch)
tree09f50477c14cea4f3f441550c19887f272efb59d /gwtquery-core
parentf53c31a2bf0ea6e5cdde0500864b6fc349261e31 (diff)
downloadgwtquery-9956daf4ec363fd4e213a7a9e544c36aef72a907.tar.gz
gwtquery-9956daf4ec363fd4e213a7a9e544c36aef72a907.zip
fix NPE when context is null
Diffstat (limited to 'gwtquery-core')
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java2
1 files changed, 1 insertions, 1 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 1e2abced..d6c158ca 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
@@ -498,7 +498,7 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
engine.impl : new SelectorEngineCssToXPath();
}
}
- NodeList<Element> n = impl.select(selector, context);
+ NodeList<Element> n = impl.select(selector, context == null ? document : context);
JsNodeArray res = copyNodeList(n);
currentSelector = selector;