소스 검색

1、优化解决求职意向空指针问题

rayson 7 달 전
부모
커밋
4adba8fe21

+ 2 - 2
menduner/menduner-system-biz/src/main/java/com/citu/module/menduner/system/controller/admin/job/JobInterestedController.java

@@ -148,14 +148,14 @@ public class JobInterestedController {
                     }
                 }
 
-                if (!item.getIndustryIdList().isEmpty()) {
+                if (null != item.getIndustryIdList() && !item.getIndustryIdList().isEmpty()) {
                     item.setIndustryNameList(item.getIndustryIdList().stream()
                             .map(industry -> industryMap.get(Long.valueOf(industry)))
                             .filter(Objects::nonNull)
                             .collect(Collectors.toList()));
                 }
 
-                if (!item.getInterestedAreaIdList().isEmpty()) {
+                if (null != item.getInterestedAreaIdList() && !item.getInterestedAreaIdList().isEmpty()) {
                     item.setInterestedAreaNameList(item.getInterestedAreaIdList().stream()
                             .map(area -> areaMap.get(Long.valueOf(area)))
                             .filter(Objects::nonNull)