From 829563b7098379a1f84cc05201370de62686ecd5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Manuel=20Carrasco=20Mo=C3=B1ino?= Date: Mon, 18 Mar 2013 12:08:50 +0100 Subject: [PATCH] Fix NPE --- .../google/gwt/query/client/plugins/callbacks/Callbacks.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5