From 1a620a3fabd5072d9bfa8f38d86a17f3c441b707 Mon Sep 17 00:00:00 2001 From: jdramaix Date: Sat, 27 Sep 2014 00:23:58 +0200 Subject: Fix bug with data("nonExistingKey", String.class) --- gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gwtquery-core/src/main/java') diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsCache.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsCache.java index f10d998b..71d3d3c0 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsCache.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsCache.java @@ -67,7 +67,7 @@ public class JsCache extends JavaScriptObject { @SuppressWarnings("unchecked") public final T get(Object id, Class clz) { Object o = get(id); - if (clz != null) { + if (o != null && clz != null) { if (o instanceof Double) { Double d = (Double)o; if (clz == Float.class) o = d.floatValue(); -- cgit v1.2.3