Browse Source

空指针问题修复

chenpeiqing 5 months ago
parent
commit
5ace37ad2e

+ 2 - 1
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/adweb/site/service/impl/AdwebSiteServiceImpl.java

@@ -11,6 +11,7 @@ import org.jeecg.common.util.FastJsonUtil;
 import org.jeecg.common.util.RedisUtil;
 import org.jeecg.modules.adweb.common.constant.NumConstant;
 import org.jeecg.modules.adweb.common.constant.WordPressConstants;
+import org.jeecg.modules.adweb.common.util.ListUtil;
 import org.jeecg.modules.adweb.site.dto.WordPressConfig;
 import org.jeecg.modules.adweb.site.entity.AdwebSite;
 import org.jeecg.modules.adweb.site.entity.AdwebUserWpsite;
@@ -108,7 +109,7 @@ public class AdwebSiteServiceImpl extends ServiceImpl<AdwebSiteMapper, AdwebSite
                     } else {
                         config.setWordpressSetting(wordpressSettingMap.get("setting").toString());
                         List<String> open = FastJsonUtil.parseList(wordpressSettingMap.get("open").toString(), String.class);
-                        if (!open.isEmpty()) {
+                        if (ListUtil.notEmpty(open)) {
                             config.setOpenSetting(open);
                         }
                         if (wordpressSettingMap.size() > 2) {