|
@@ -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)
|