mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-30 01:58:23 +08:00
修复handler为空时导致的bug
This commit is contained in:
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user