Skip to content
Snippets Groups Projects
Commit 3db10bea authored by Mike McKay's avatar Mike McKay
Browse files

XNAT-4252 Prevented user from getting error page when logging out of an open XNAT.

parent 7ebe578b
No related branches found
No related tags found
No related merge requests found
......@@ -26,9 +26,11 @@ public class XnatLogoutHandler extends SecurityContextLogoutHandler implements L
super.logout(request, response, authentication);
//expire that guy here.
SessionInformation si = _registry.getSessionInformation(request.getSession().getId());
if (si!=null) {
si.expireNow();
if(_registry!=null) {
SessionInformation si = _registry.getSessionInformation(request.getSession().getId());
if (si != null) {
si.expireNow();
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment