diff options
author | jdramaix <julien.dramaix@gmail.com> | 2014-09-27 00:23:58 +0200 |
---|---|---|
committer | jdramaix <julien.dramaix@gmail.com> | 2014-09-27 00:23:58 +0200 |
commit | 1a620a3fabd5072d9bfa8f38d86a17f3c441b707 (patch) | |
tree | f709b297c2501c4f231d437d40984ae4a7497ece /gwtquery-core/src/main | |
parent | e8e5739fc12d16534693f4714295e50590758be4 (diff) | |
download | gwtquery-jd_fix_data_string.tar.gz gwtquery-jd_fix_data_string.zip |
Fix bug with data("nonExistingKey", String.class)jd_fix_data_string
Diffstat (limited to 'gwtquery-core/src/main')
-rw-r--r-- | gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsCache.java | 2 |
1 files changed, 1 insertions, 1 deletions
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> T get(Object id, Class<? extends T> 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(); |