Skip to content

Commit c13b8ac

Browse files
committed
修复handler为空时导致的bug
1 parent 560ae27 commit c13b8ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMessageRouterRule.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ protected WxMpXmlOutMessage service(WxMpXmlMessage wxMessage,
211211
WxMpXmlOutMessage res = null;
212212
for (WxMpMessageHandler handler : this.handlers) {
213213
// 返回最后handler的结果
214+
if(handler == null){
215+
continue;
216+
}
214217
res = handler.handle(wxMessage, context, wxMpService, sessionManager);
215218
}
216219
return res;

0 commit comments

Comments
 (0)