修复handler为空时导致的bug

This commit is contained in:
BinaryWang 2016-07-13 15:58:01 +08:00
parent 560ae27a45
commit c13b8ac485

View File

@ -211,6 +211,9 @@ public class WxMpMessageRouterRule {
WxMpXmlOutMessage res = null;
for (WxMpMessageHandler handler : this.handlers) {
// 返回最后handler的结果
if(handler == null){
continue;
}
res = handler.handle(wxMessage, context, wxMpService, sessionManager);
}
return res;