update - 修复NPE问题

This commit is contained in:
yangqicheng 2024-05-14 14:54:07 +08:00
parent 379984dfff
commit 6330e81bc6

View File

@ -352,7 +352,7 @@ public final class BpmnJsonConverterUtil {
noticeConfigElement.setName(CONFIG_NOTICE);
// 通知消息模板配置
if (Objects.nonNull(noticeConf.getNotice()) && noticeConf.getNotice().getSendMessage()) {
if (Objects.nonNull(noticeConf.getNotice()) && noticeConf.getNotice().getSendMessage() != null && noticeConf.getNotice().getSendMessage()) {
ExtensionElement noticeMessage = new ExtensionElement();
noticeMessage.setName(TEMPLATE_NOTICE_MESSAGE_CONFIG);
ExtensionAttribute noticeMessageAttribute = new ExtensionAttribute();