From: Manuel Carrasco MoƱino Date: Fri, 19 Jul 2013 15:58:31 +0000 (+0200) Subject: Fix NPE X-Git-Tag: release-1.4.0~39^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e099b639c4ded923edfee0c84bdbab4e62723e3e;p=gwtquery.git Fix NPE --- 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);