Browse Source

jfinal 2.3 ^_^

James 9 years ago
parent
commit
4b7fc6f691
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/com/jfinal/plugin/redis/Cache.java

+ 5 - 1
src/com/jfinal/plugin/redis/Cache.java

@@ -720,7 +720,11 @@ public class Cache {
 		Jedis jedis = getJedis();
 		try {
 			List<byte[]> data = jedis.lrange(keyToBytes(key), start, end);
-			return valueListFromBytesList(data);
+			if (data != null) {
+				return valueListFromBytesList(data);
+			} else {
+				return new ArrayList<byte[]>(0);
+			}
 		}
 		finally {close(jedis);}
 	}