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