update ruoyi-system/src/main/java/com/ruoyi/workflow/service/impl/WfProcessServiceImpl.java.

在系统模块流程服务中的实现类:WfProcessServiceImpl第767行增加了代码:  if (formInfoList.size() == 0)
                continue;  目的是:避免空集合导致的NULL空指针

Signed-off-by: Brath <l2634490675@163.com>
This commit is contained in:
Brath
2023-04-24 08:04:24 +00:00
committed by Gitee
parent f5c4095ecb
commit d0f15ebaf8

View File

@@ -764,6 +764,11 @@ public class WfProcessServiceImpl extends FlowServiceFactory implements IWfProce
.eq(WfDeployForm::getDeployId, historicProcIns.getDeploymentId())
.eq(WfDeployForm::getFormKey, formKey)
.eq(localScope, WfDeployForm::getNodeKey, flowElement.getId()));
//@author Brath
//避免空集合导致的NULL空指针
if (formInfoList.size() == 0)
continue;
WfDeployFormVo formInfo = formInfoList.iterator().next();
if (ObjectUtil.isNotNull(formInfo)) {
// 旧数据 formInfo.getFormName() 为 null