From: Manuel Carrasco MoƱino Date: Thu, 9 May 2013 21:12:18 +0000 (+0200) Subject: Fix null exception X-Git-Tag: release-1.4.0~47 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=102748323040cf20b25d46eef4a632124102c9c9;p=gwtquery.git Fix null exception --- diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java index b7e42c9a..3d31e852 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java @@ -171,6 +171,7 @@ public class Properties extends JavaScriptObject { * */ public final native void setFunction(T name, Function f) /*-{ + if (!f) return; this[name] = function() { f.@com.google.gwt.query.client.Function::fe(Ljava/lang/Object;)(arguments); }