未验证 提交 94643760 编写于 作者: K Kirs 提交者: GitHub

[1.3.5-prepare][cherry-pick]#4459 update workflow instance NPE (#4604)

pr #4459
issue #4449
上级 d64fbe1a
......@@ -382,7 +382,7 @@ public class ProcessInstanceService extends BaseDAGService {
originDefParams = JSONUtils.toJson(processData.getGlobalParams());
List<Property> globalParamList = processData.getGlobalParams();
Map<String, String> globalParamMap = globalParamList.stream().collect(Collectors.toMap(Property::getProp, Property::getValue));
Map<String, String> globalParamMap = Optional.ofNullable(globalParamList).orElse(Collections.emptyList()).stream().collect(Collectors.toMap(Property::getProp, Property::getValue));
globalParams = ParameterUtils.curingGlobalParams(globalParamMap, globalParamList,
processInstance.getCmdTypeIfComplement(), schedule);
timeout = processData.getTimeout();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册