From e83cba323489261bcc7967a0eb7be36804d57372 Mon Sep 17 00:00:00 2001 From: Burce Date: Fri, 18 Oct 2019 18:29:06 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=8B=9B=E5=95=86]adjust?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iformall/service/invest/impl/InvestBizServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBizServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBizServiceImpl.java index af6b28910..3a3686236 100644 --- a/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBizServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBizServiceImpl.java @@ -239,7 +239,10 @@ public class InvestBizServiceImpl implements InvestBizService { List resultList = new ArrayList<>(); for (InvestFollowRecordEntity item : recordList) { InvestCustomerEntity customerEntity = customerMap.get(item.getCustomerId()); - WxBrand brand = brandMap.get(customerEntity.getBrandId()); + WxBrand brand = null; + if (Objects.nonNull(customerEntity)) { + brand = brandMap.get(customerEntity.getBrandId()); + } resultList.add(buildFollowRecordItem(usersMap, item, customerEntity, brand)); }