update - 消息模版触发时机为空设置为空列表避免空指针异常
This commit is contained in:
parent
6330e81bc6
commit
e61ba9886b
@ -139,7 +139,8 @@ public final class BpmnMetaParserHelper {
|
||||
String events = v.get(0).getChildElements().getOrDefault(TEMPLATE_NOTICE_MESSAGE_EVENTS, Collections.emptyList())
|
||||
.get(0).getElementText();
|
||||
List<BpmnProcessInstanceResultEnum> resultEnums = JSON.parseArray(events, BpmnProcessInstanceResultEnum.class);
|
||||
notice.setTriggerEvents(resultEnums);
|
||||
//触发时机为Null,设置为空列表
|
||||
notice.setTriggerEvents(resultEnums == null ? Collections.emptyList() : resultEnums);
|
||||
|
||||
v.get(0).getChildElements().getOrDefault(TEMPLATE_NOTICE_MESSAGE_DESTINATION, Collections.emptyList()).get(0).getChildElements()
|
||||
.forEach((a, b) -> {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user