Skip to content

Commit

Permalink
fix: servlet request null 일때, 예외처리
Browse files Browse the repository at this point in the history
  • Loading branch information
This2sho committed Jun 25, 2024
1 parent 8fd8343 commit f47f420
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ public Object resolveArgument(MethodParameter parameter, ModelAndViewContainer m
}

private String getJsessionid(HttpServletRequest request) {
if (request == null) {
return null;
}
for (Cookie cookie : request.getCookies()) {
if (cookie.getName().equals(JSESSIONID)) {
return cookie.getValue();
Expand Down

0 comments on commit f47f420

Please sign in to comment.