Skip to content

Commit

Permalink
fix: cookie 확인 null-safe
Browse files Browse the repository at this point in the history
  • Loading branch information
SHEOMM committed Apr 1, 2024
1 parent d66c6b6 commit e579293
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ private HttpCookie getAuthCodeCookie(String authCode){
}

private void checkAuthCodeCookie(Cookie[] cookies, String authCode){
if(cookies == null)
return;
Optional<Cookie> authCookie = Arrays.stream(cookies)
.filter(cookie -> cookie.getName().equals(encodeCookieKey(authCode)))
.findFirst();
Expand Down

0 comments on commit e579293

Please sign in to comment.