Skip to content

Commit

Permalink
- Fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Mar 30, 2024
1 parent 8d8c11e commit 32b331f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ private Authentication authenticateAndUpdateCache(HttpServletRequest request, Ht
token = accessTokenDetails.getValue();
RequestContextHolder.getRequestAttributes().setAttribute(
ACCESS_TOKEN_PARAM, accessTokenDetails.getValue(), 0);
if (accessTokenDetails.getRefreshToken().getValue() != null) {
if (accessTokenDetails != null && accessTokenDetails.getRefreshToken() != null &&
accessTokenDetails.getRefreshToken().getValue() != null) {
RequestContextHolder.getRequestAttributes().setAttribute(
REFRESH_TOKEN_PARAM, accessTokenDetails.getRefreshToken().getValue(), 0);
}
Expand Down

0 comments on commit 32b331f

Please sign in to comment.