From a949fe22d08edf7676ba9753a4e7dde997590120 Mon Sep 17 00:00:00 2001 From: Yin Guo Wei Date: Sat, 21 Apr 2018 08:49:40 +0800 Subject: [PATCH] fix Nullpoint exception NullPointException when set : ureport.disableHttpSessionReportCache=true --- .../src/main/java/com/bstek/ureport/cache/CacheUtils.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ureport2-core/src/main/java/com/bstek/ureport/cache/CacheUtils.java b/ureport2-core/src/main/java/com/bstek/ureport/cache/CacheUtils.java index be37de1..ec60f12 100644 --- a/ureport2-core/src/main/java/com/bstek/ureport/cache/CacheUtils.java +++ b/ureport2-core/src/main/java/com/bstek/ureport/cache/CacheUtils.java @@ -48,7 +48,9 @@ public class CacheUtils implements ApplicationContextAware{ public static void storeChartDataMap(Map map){ String key=CHART_DATA_key; - reportCache.storeObject(key, map); + if(reportCache!=null){ + reportCache.storeObject(key, map); + } } public static Object getObject(String file){