]> source.dussan.org Git - gwtquery.git/commitdiff
Fix NPE
authorManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>
Fri, 19 Jul 2013 15:58:31 +0000 (17:58 +0200)
committerManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>
Fri, 19 Jul 2013 15:58:31 +0000 (17:58 +0200)
gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/Deferred.java

index 402f3efbeabe42c49fdcb8a50bd1c78c6686ee2a..5be4892cb5310b90e2340f2622e524ae27a6269a 100644 (file)
@@ -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);