diff --git a/src/main/java/com/example/likelion12/service/MemberService.java b/src/main/java/com/example/likelion12/service/MemberService.java index 23bd9e0..9a87ace 100644 --- a/src/main/java/com/example/likelion12/service/MemberService.java +++ b/src/main/java/com/example/likelion12/service/MemberService.java @@ -70,7 +70,7 @@ public Long signOut(Long memberId) { log.info("[MemberService.deleteMember] memberId: {}", memberId); // 회원을 찾고 - Member member = memberRepository.findById(memberId).orElse(null); + Member member = memberRepository.findById(memberId).orElseThrow(()-> new MemberException(CANNOT_FOUND_MEMBER)); // 회원 상태를 Delete 변경하고 member.setStatus(BaseStatus.DELETE);