Skip to content

Commit

Permalink
fix null check
Browse files Browse the repository at this point in the history
  • Loading branch information
BomLee427 committed Dec 8, 2024
1 parent e269ee3 commit 111fda0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public AuthRefreshResponse refresh(
new CustomException(
HttpStatus.BAD_REQUEST, ErrorCode.NOT_FOUND_USER));

if (!user.getRefreshToken().equals(refreshToken)) {
if (user.getRefreshToken() != null && !user.getRefreshToken().equals(refreshToken)) {
throw new CustomException(HttpStatus.BAD_REQUEST, ErrorCode.INVALID_TOKEN);
}

Expand Down

0 comments on commit 111fda0

Please sign in to comment.