SEC-404: NPE when logging out if user not already logged in.
This commit is contained in:
+1
-1
@@ -292,7 +292,7 @@ public class TokenBasedRememberMeServices implements RememberMeServices, Initial
|
||||
}
|
||||
|
||||
public void logout(HttpServletRequest request, HttpServletResponse response, Authentication authentication) {
|
||||
cancelCookie(request, response, "Logout of user " + authentication.getName());
|
||||
cancelCookie(request, response, "Logout of user " + authentication == null ? "Unknown" : authentication.getName());
|
||||
}
|
||||
|
||||
protected Cookie makeCancelCookie(HttpServletRequest request) {
|
||||
|
||||
Reference in New Issue
Block a user