Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ public Subject login(Subject subject, AuthenticationToken token) throws Authenti
* @param subject Subject
*/
protected void beforeSuccessfulLogin(Subject subject) {
Session session = subject.getSession(false);
Session session = subject != null ? subject.getSession(false) : null;
Comment thread
lprimak marked this conversation as resolved.
if (session != null) {
Map<Object, Object> attributes = new HashMap<>();
session.getAttributeKeys().forEach(key -> attributes.put(key, session.getAttribute(key)));
Expand Down
Loading