From 102748323040cf20b25d46eef4a632124102c9c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Manuel=20Carrasco=20Mo=C3=B1ino?= Date: Thu, 9 May 2013 23:12:18 +0200 Subject: [PATCH] Fix null exception --- .../src/main/java/com/google/gwt/query/client/Properties.java | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.39.5