From e099b639c4ded923edfee0c84bdbab4e62723e3e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Manuel=20Carrasco=20Mo=C3=B1ino?= Date: Fri, 19 Jul 2013 17:58:31 +0200 Subject: [PATCH] Fix NPE --- .../com/google/gwt/query/client/plugins/deferred/Deferred.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/Deferred.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/Deferred.java index 402f3efb..5be4892c 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/Deferred.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/Deferred.java @@ -78,7 +78,7 @@ public class Deferred implements Promise.Deferred { p.progress(new DoFunction(PROGRESS)); return; // Otherwise we change the arguments with the new args - } else if (newArgs.getClass().isArray()) { + } else if (newArgs != null && newArgs.getClass().isArray()) { doIt.setArguments((Object[])newArgs); } else { doIt.setArguments(newArgs); -- 2.39.5