From 256d9e240e91c460469767823821ff7bff9ad1bd Mon Sep 17 00:00:00 2001 From: Chopper Date: Fri, 2 Jul 2021 15:05:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=8F=82=E6=95=B0=E8=BF=94?= =?UTF-8?q?=E5=9B=9Evo=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lili/modules/goods/serviceimpl/GoodsSkuServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/src/main/java/cn/lili/modules/goods/serviceimpl/GoodsSkuServiceImpl.java b/framework/src/main/java/cn/lili/modules/goods/serviceimpl/GoodsSkuServiceImpl.java index e6361cd3..f76042dc 100644 --- a/framework/src/main/java/cn/lili/modules/goods/serviceimpl/GoodsSkuServiceImpl.java +++ b/framework/src/main/java/cn/lili/modules/goods/serviceimpl/GoodsSkuServiceImpl.java @@ -227,8 +227,8 @@ public class GoodsSkuServiceImpl extends ServiceImpl i map.put("promotionMap", goodsIndex.getPromotionMap()); //获取参数信息 - if(goodsVO.getGoodsParamsDTOList().size()>0){ - map.put("goodsParamsDTOList",goodsVO.getGoodsParamsDTOList()); + if (goodsVO.getGoodsParamsDTOList() != null && goodsVO.getGoodsParamsDTOList().size() > 0) { + map.put("goodsParamsDTOList", goodsVO.getGoodsParamsDTOList()); } //记录用户足迹