diff --git a/src/main/java/com/zcloud/controller/app/inspection/AppSafetyEnvironmentalExplainController.java b/src/main/java/com/zcloud/controller/app/inspection/AppSafetyEnvironmentalExplainController.java index 6a5d43c3..d9d534a5 100644 --- a/src/main/java/com/zcloud/controller/app/inspection/AppSafetyEnvironmentalExplainController.java +++ b/src/main/java/com/zcloud/controller/app/inspection/AppSafetyEnvironmentalExplainController.java @@ -61,7 +61,10 @@ public class AppSafetyEnvironmentalExplainController extends BaseController { PageData condition = new PageData(); condition.put("DEPARTMENT_ID",vector.getString("INSPECTED_DEPARTMENT_ID")); List parent_list = departmentService.getGenealogy(condition); - String corp_infos = parent_list.stream().map(n -> n.getString("NAME")).collect(Collectors.joining("-")); + String corp_infos = ""; + if(parent_list != null) { + corp_infos = parent_list.stream().map(n -> n.getString("NAME")).collect(Collectors.joining("-")); + } vector.put("INSPECTED_DEPARTMENT_NAMES",corp_infos); } map.put("varList", varList);