Fix NPE during session id renewal if session not found on a context

This commit is contained in:
Jan Bartel 2016-03-16 14:49:07 +11:00
parent 5f22bede3a
commit e5981a9520
1 changed files with 6 additions and 0 deletions

View File

@ -960,6 +960,12 @@ public class SessionManager extends ContainerLifeCycle implements org.eclipse.je
try
{
Session session = _sessionStore.renewSessionId (oldId, newId); //swap the id over
if (session == null)
{
//session doesn't exist on this context
return;
}
session.setExtendedId(newExtendedId); //remember the extended id
_sessionIdManager.useId(session); //tell id manager new id is in use