From 481bacc51633f8b6f1557133a96587c18c177d99 Mon Sep 17 00:00:00 2001 From: yeon015 Date: Sun, 1 Sep 2024 00:34:11 +0900 Subject: [PATCH] =?UTF-8?q?fix(#199)=20:=20=EC=A1=B0=EA=B1=B4=EB=AC=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/umc/th/juinjang/controller/OAuthController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }