From: Manolo Carrasco Date: Mon, 10 Sep 2012 09:14:29 +0000 (+0000) Subject: Fix null exceptions X-Git-Tag: release-1.3.2~63 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=87fc7f8b04c8a8db750ef4e27176c1eca503349e;p=gwtquery.git Fix null exceptions --- 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); } /**