From 54a7c94cf533fba812c2eb9aa3df7dd2f3c013fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9C=B0=E5=B9=B3=E7=BA=BF?= <22250530@qq.com> Date: Mon, 20 Jul 2015 10:41:35 +0800 Subject: [PATCH] --- src/com/wentch/redkale/source/EntityCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/wentch/redkale/source/EntityCache.java b/src/com/wentch/redkale/source/EntityCache.java index eae9c4f13..13e655173 100644 --- a/src/com/wentch/redkale/source/EntityCache.java +++ b/src/com/wentch/redkale/source/EntityCache.java @@ -106,7 +106,7 @@ public final class EntityCache { Stream stream = listStream(); if (filter != null) stream = stream.filter(filter); Collector collector = null; - final Class valtype = reckonAttr.type(); + final Class valtype = reckonAttr == null ? null : reckonAttr.type(); switch (reckon) { case AVG: if (valtype == float.class || valtype == Float.class || valtype == double.class || valtype == Double.class) {