From 87fc7f8b04c8a8db750ef4e27176c1eca503349e Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Mon, 10 Sep 2012 09:14:29 +0000 Subject: [PATCH] Fix null exceptions --- .../src/main/java/com/google/gwt/query/client/Function.java | 4 ++-- 1 file 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); } /** -- 2.39.5