mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-23 22:11:40 +08:00
修复handler为空时导致的bug
This commit is contained in:
parent
560ae27a45
commit
c13b8ac485
@ -211,6 +211,9 @@ public class WxMpMessageRouterRule {
|
|||||||
WxMpXmlOutMessage res = null;
|
WxMpXmlOutMessage res = null;
|
||||||
for (WxMpMessageHandler handler : this.handlers) {
|
for (WxMpMessageHandler handler : this.handlers) {
|
||||||
// 返回最后handler的结果
|
// 返回最后handler的结果
|
||||||
|
if(handler == null){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
res = handler.handle(wxMessage, context, wxMpService, sessionManager);
|
res = handler.handle(wxMessage, context, wxMpService, sessionManager);
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
|
Loading…
Reference in New Issue
Block a user