update - 修复 bpmnModel 解析的 NPE 问题
This commit is contained in:
parent
28c15e730a
commit
7036d7f95c
@ -75,7 +75,8 @@ import static cn.axzo.workflow.common.constant.BpmnConstants.TEMPLATE_SMS_MESSAG
|
||||
* @since 2023/11/15 22:51
|
||||
*/
|
||||
public final class BpmnMetaParserHelper {
|
||||
private BpmnMetaParserHelper() {}
|
||||
private BpmnMetaParserHelper() {
|
||||
}
|
||||
|
||||
public static Optional<String> getProcessServerVersion(Process process) {
|
||||
return Optional.ofNullable(process.getAttributeValue(null, FLOW_SERVER_VERSION));
|
||||
@ -296,6 +297,9 @@ public final class BpmnMetaParserHelper {
|
||||
|
||||
|
||||
private static Optional<ExtensionElement> defaultValid(FlowElement flowElement, String elementName) {
|
||||
if (Objects.isNull(flowElement)) {
|
||||
return Optional.empty();
|
||||
}
|
||||
if (CollectionUtils.isEmpty(flowElement.getExtensionElements()) || !flowElement.getExtensionElements().containsKey(elementName)) {
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user