From 7385b4430d20f7ec0f04fe5eb8620b2e52351445 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Manuel=20Carrasco=20Mo=C3=B1ino?= Date: Sat, 13 Apr 2013 01:40:50 +0200 Subject: [PATCH] Fix NPE --- .../gwt/query/client/plugins/deferred/Deferred.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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 0b49551c..e0257426 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 @@ -146,6 +146,10 @@ public class Deferred implements Promise.Deferred { public boolean isPending() { return Promise.PENDING.equals(state()); } + + public String toString() { + return "Promise this=" + hashCode() + " " + dfd; + } } /** @@ -308,4 +312,9 @@ public class Deferred implements Promise.Deferred { resolve.fire(o); return this; } + + @Override + public String toString() { + return "Deferred this=" + hashCode() + " promise=" + promise().hashCode() + " state=" + promise.state() + " restatus=" + resolve.status(); + } } -- 2.39.5