diff --git a/src/main/java/umc/th/juinjang/controller/OAuthController.java b/src/main/java/umc/th/juinjang/controller/OAuthController.java index cf22a2e..744a6b2 100644 --- a/src/main/java/umc/th/juinjang/controller/OAuthController.java +++ b/src/main/java/umc/th/juinjang/controller/OAuthController.java @@ -48,7 +48,7 @@ public class OAuthController { @PostMapping("/kakao/login") public ApiResponse kakaoLogin(@RequestHeader("target-id") String kakaoTargetId, @RequestBody @Validated KakaoLoginRequestDto kakaoReqDto) { Long targetId; - if(kakaoTargetId.isEmpty()) { + if(kakaoTargetId == null) { throw new ExceptionHandler(EMPTY_TARGET_ID); } @@ -60,7 +60,7 @@ public ApiResponse kakaoLogin(@RequestHeader("target-id") Stri @PostMapping("/kakao/signup") public ApiResponse kakaoSignUp(@RequestHeader("target-id") String kakaoTargetId, @RequestBody @Validated KakaoSignUpRequestDto kakaoSignUpReqDto) { Long targetId; - if(kakaoTargetId.isEmpty()) { + if(kakaoTargetId == null) { throw new ExceptionHandler(EMPTY_TARGET_ID); }