From 70507b31b89c95da4c08d8651211c97f0609187d Mon Sep 17 00:00:00 2001 From: TS-QD1 Date: Wed, 12 Apr 2023 09:54:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86NullPoint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/com/tenlion/service/apply/impl/ApplyServiceImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/cn/com/tenlion/service/apply/impl/ApplyServiceImpl.java b/src/main/java/cn/com/tenlion/service/apply/impl/ApplyServiceImpl.java index 30a5eaa..0c75840 100644 --- a/src/main/java/cn/com/tenlion/service/apply/impl/ApplyServiceImpl.java +++ b/src/main/java/cn/com/tenlion/service/apply/impl/ApplyServiceImpl.java @@ -311,6 +311,9 @@ public class ApplyServiceImpl extends DefaultBaseService implements IApplyServic for (TrainingInstitutionWorkTypeDTO row : trainingInstitutionWorkTypeList) { ApplyWorkTypeInstitutionDTO trainingInstitutionWorkTypeDTO = new ApplyWorkTypeInstitutionDTO(); InstitutionDTO institutionDTO = iInstitutionService.get(row.getInstitutionId()); + if (institutionDTO == null) { + continue; + } BeanUtils.copyProperties(trainingInstitutionWorkTypeDTO, institutionDTO); //统计机构报名数量 List states = new ArrayList<>();