From 0fe0f9b4a53bf213abef635d6611d20aed7585b9 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Thu, 12 Jan 2023 14:58:43 +0800 Subject: [PATCH] npe --- .../processForm/controller/TAbilityApplicationController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renren-admin/src/main/java/io/renren/modules/processForm/controller/TAbilityApplicationController.java b/renren-admin/src/main/java/io/renren/modules/processForm/controller/TAbilityApplicationController.java index eb483df7..16bad238 100644 --- a/renren-admin/src/main/java/io/renren/modules/processForm/controller/TAbilityApplicationController.java +++ b/renren-admin/src/main/java/io/renren/modules/processForm/controller/TAbilityApplicationController.java @@ -333,7 +333,7 @@ public class TAbilityApplicationController { Map> finalResult1 = result; Map>> re = result.keySet().stream().map(index -> { final List tAbilityApplicationDTOList = finalResult1.get(index); - if (tAbilityApplicationDTOList.isEmpty()) { + if (tAbilityApplicationDTOList == null || tAbilityApplicationDTOList.isEmpty()) { return null; } List resourceDTOS = tAbilityApplicationDTOList.stream().filter(tAbilityApplicationDTO -> StringUtils.isEmpty(tAbilityApplicationDTO.getCameraList())) // 过滤非摄像头申请