From 2aa27cf12d4a3c7585a951e98db934b9eec9efa8 Mon Sep 17 00:00:00 2001 From: Tinsh Date: Fri, 21 Jul 2023 12:32:26 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E7=BB=99=20BaseWxMpServiceImpl.configS?= =?UTF-8?q?torageMap=20=E8=B5=8B=E5=88=9D=E5=A7=8B=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java index 67d33c6d0..6430e9dbf 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java @@ -39,6 +39,7 @@ import me.chanjar.weixin.mp.util.WxMpConfigStorageHolder; import org.apache.commons.lang3.StringUtils; import java.io.IOException; +import java.util.HashMap; import java.util.Map; import java.util.concurrent.TimeUnit; import java.util.concurrent.locks.Lock; @@ -155,7 +156,7 @@ public abstract class BaseWxMpServiceImpl implements WxMpService, RequestH @Setter private WxMpFreePublishService freePublishService = new WxMpFreePublishServiceImpl(this); - private Map configStorageMap; + private Map configStorageMap = new HashMap<>(); private int retrySleepMillis = 1000; private int maxRetryTimes = 5;