From: Manuel Carrasco MoƱino Date: Mon, 18 Mar 2013 11:08:50 +0000 (+0100) Subject: Fix NPE X-Git-Tag: release-1.4.0~57^2~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=829563b7098379a1f84cc05201370de62686ecd5;p=gwtquery.git Fix NPE --- diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/callbacks/Callbacks.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/callbacks/Callbacks.java index 9452d117..c7b4fb88 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/callbacks/Callbacks.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/callbacks/Callbacks.java @@ -163,7 +163,7 @@ public class Callbacks { private void addAll(Object...o) { for (Object c : o) { - if (!done && (!opts.getUnique() || !stack.contains(c))) { + if (!done && c != null && (!opts.getUnique() || !stack.contains(c))) { stack.add(c); } // In jQuery add always is run when memory is true even when unique is set