fanxp hace 6 meses
padre
commit
7a500534af

+ 2 - 2
src/main/java/com/xjrsoft/module/workflow/service/impl/WorkflowExecuteServiceImpl.java

@@ -1654,7 +1654,7 @@ public class WorkflowExecuteServiceImpl implements IWorkflowExecuteService {
 //                                .eq(WorkflowRecord::getProcessId, task.getProcessInstanceId())
 //                );
                 List<WorkflowRecord> recordList = mapRecords.get(task.getProcessInstanceId());
-                if (!recordList.isEmpty() && recordList.size() > 1) {
+                if (recordList != null && recordList.size() > 1) {
                     String comment = recordList.get(recordList.size() - 1).getMessage();
                     if (comment.contains("【驳回】")) {
                         User rejectUser = userService.getById(recordList.get(recordList.size() - 1).getCreateUserId());
@@ -1663,7 +1663,7 @@ public class WorkflowExecuteServiceImpl implements IWorkflowExecuteService {
                         vo.setRejectState("系统自动驳回");
                     }
                 }
-                if (!recordList.isEmpty() && recordList.size() > 2) {
+                if (recordList != null && recordList.size() > 2) {
                     String comment2 = recordList.get(recordList.size() - 2).getMessage();
                     if (comment2.contains("自动驳回")) {
                         vo.setRejectState("系统自动驳回");