From ecabc81933aa592675018cd1b3aff392844ca882 Mon Sep 17 00:00:00 2001 From: kimdongmin Date: Thu, 25 Jan 2024 02:31:09 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=ED=95=98?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EC=9D=80=20=EC=9C=A0=EC=A0=80=EB=8F=84=20?= =?UTF-8?q?=EC=B5=9C=EC=8B=A0=201=EA=B1=B4=EC=9D=98=20=EC=97=AC=ED=96=89?= =?UTF-8?q?=20=ED=9B=84=EA=B8=B0=20=EB=A6=AC=EB=B7=B0(TripRecordReview)=20?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=EA=B0=80=20=EA=B0=80=EB=8A=A5=ED=95=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../triprecordreview/service/TripRecordReviewService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/haejwo/tripcometrue/domain/review/triprecordreview/service/TripRecordReviewService.java b/src/main/java/com/haejwo/tripcometrue/domain/review/triprecordreview/service/TripRecordReviewService.java index f494b71d..5d94ba13 100644 --- a/src/main/java/com/haejwo/tripcometrue/domain/review/triprecordreview/service/TripRecordReviewService.java +++ b/src/main/java/com/haejwo/tripcometrue/domain/review/triprecordreview/service/TripRecordReviewService.java @@ -64,6 +64,9 @@ public EvaluateTripRecordReviewResponseDto saveRatingScore( } private Member getMember(PrincipalDetails principalDetails) { + if (principalDetails == null) { + return null; + } return memberRepository.findById(principalDetails.getMember().getId()) .orElseThrow(UserNotFoundException::new); }