aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java
index ad6e1a75..d99021d9 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java
@@ -65,7 +65,7 @@ public abstract class Function {
}
public Object getDataObject(int idx) {
- return data.length > idx ? data[idx] : null;
+ return data != null && data.length > idx ? data[idx] : null;
}
public Properties getDataProperties() {
@@ -273,7 +273,7 @@ public abstract class Function {
* They are intentionally final to avoid override them
*/
public final void fe() {
- fe((Object)null);
+ fe(data);
}
/**