]> source.dussan.org Git - gwtquery.git/commitdiff
Fix null exception
authorManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>
Thu, 9 May 2013 21:12:18 +0000 (23:12 +0200)
committerManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>
Thu, 9 May 2013 21:12:18 +0000 (23:12 +0200)
gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java

index b7e42c9aff4c2d5713594417fa9f789ba04513ba..3d31e852249054d543c7cab091ca35f20c0ac401 100644 (file)
@@ -171,6 +171,7 @@ public class Properties extends JavaScriptObject {
    * 
    */
   public final native <T> void setFunction(T name, Function f) /*-{
+    if (!f) return;
     this[name] = function() {
       f.@com.google.gwt.query.client.Function::fe(Ljava/lang/Object;)(arguments);
     }