From 1a07b48348a5ea2ad3d942bf0a6bf15dc8d404b3 Mon Sep 17 00:00:00 2001 From: JIN-076 <57834671+JIN-076@users.noreply.github.com> Date: Wed, 21 Feb 2024 18:54:04 +0900 Subject: [PATCH] =?UTF-8?q?[BUG]=20=ED=94=84=EB=A1=9C=EC=A0=9D=ED=8A=B8,?= =?UTF-8?q?=20=ED=94=84=EB=A1=9C=ED=95=84=20=EC=B9=B4=EB=93=9C=20=EB=A6=AC?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20=EC=A1=B0=ED=9A=8C=ED=95=A0=20=EB=95=8C,?= =?UTF-8?q?=20=EC=97=85=EC=A0=81=20=EC=A1=B0=ED=9A=8C=20=EC=8B=9C=20?= =?UTF-8?q?=EB=B0=9C=EC=83=9D=ED=95=98=EB=8A=94=20NPE=20=ED=95=B4=EA=B2=B0?= =?UTF-8?q?=20(#127)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [BUG] 프로젝트 카드 리스트 조회할 때, 업적 조회 시 발생하는 NPE 해결 * [BUG] 프로필 카드 리스트 조회할 때, 빈 업적 조회 시 발생하는 NPE 해결 --- .../profile/infrastructure/ProfileCardRepositoryCustomImpl.java | 2 +- .../project/infrastructure/ProjectRepositoryCustomImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/oeid/mogakgo/domain/profile/infrastructure/ProfileCardRepositoryCustomImpl.java b/src/main/java/io/oeid/mogakgo/domain/profile/infrastructure/ProfileCardRepositoryCustomImpl.java index 1740e202..006bd789 100644 --- a/src/main/java/io/oeid/mogakgo/domain/profile/infrastructure/ProfileCardRepositoryCustomImpl.java +++ b/src/main/java/io/oeid/mogakgo/domain/profile/infrastructure/ProfileCardRepositoryCustomImpl.java @@ -46,7 +46,7 @@ public CursorPaginationResult findByConditionWithPaginati profileCard.getUser().getGithubUrl(), profileCard.getUser().getBio(), profileCard.getUser().getJandiRate(), - profileCard.getUser().getAchievement().getTitle(), + profileCard.getUser().getAchievement() != null ? profileCard.getUser().getAchievement().getTitle() : null, profileCard.getUser().getUserDevelopLanguageTags().stream().map( UserDevelopLanguageTag::getDevelopLanguage).map(String::valueOf).toList(), profileCard.getUser().getUserWantedJobTags().stream().map( diff --git a/src/main/java/io/oeid/mogakgo/domain/project/infrastructure/ProjectRepositoryCustomImpl.java b/src/main/java/io/oeid/mogakgo/domain/project/infrastructure/ProjectRepositoryCustomImpl.java index 1fe450d0..15ae2fe5 100644 --- a/src/main/java/io/oeid/mogakgo/domain/project/infrastructure/ProjectRepositoryCustomImpl.java +++ b/src/main/java/io/oeid/mogakgo/domain/project/infrastructure/ProjectRepositoryCustomImpl.java @@ -54,7 +54,7 @@ public CursorPaginationResult findByConditionWithPagination project.getCreator().getGithubUrl(), project.getCreator().getBio(), project.getCreator().getJandiRate(), - project.getCreator().getAchievement().getTitle(), + project.getCreator().getAchievement() != null ? project.getCreator().getAchievement().getTitle() : null, project.getCreator().getUserDevelopLanguageTags().stream().map( UserDevelopLanguageTag::getDevelopLanguage).map(String::valueOf).toList(), project.getCreator().getUserWantedJobTags().stream().map(