Showing
1 changed file
with
3 additions
and
0 deletions
@@ -208,6 +208,9 @@ public class RedisGwCacheClient implements CacheClient { | @@ -208,6 +208,9 @@ public class RedisGwCacheClient implements CacheClient { | ||
208 | @SuppressWarnings("unchecked") | 208 | @SuppressWarnings("unchecked") |
209 | private <T> T getValue(String value, Class<T> clazz) { | 209 | private <T> T getValue(String value, Class<T> clazz) { |
210 | T t = null; | 210 | T t = null; |
211 | + if (value == null){ | ||
212 | + return (T) null; | ||
213 | + } | ||
211 | if (clazz.equals(String.class)) { | 214 | if (clazz.equals(String.class)) { |
212 | t = (T) value; | 215 | t = (T) value; |
213 | } else if (clazz.equals(Integer.class)) { | 216 | } else if (clazz.equals(Integer.class)) { |
-
Please register or login to post a comment