Avoid NPE when handleSESSION_EXPIRED is processed while handleSESSION_CREATED is being processed.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1135069 13f79535-47bb-0310-9956-
ffa450edef68
session.setPrimarySession(false);
session.setCreationTime(msg.getTimestamp());
// use container maxInactiveInterval so that session will expire correctly in case of primary transfer
- session.setMaxInactiveInterval(getMaxInactiveInterval());
+ session.setMaxInactiveInterval(getMaxInactiveInterval(), false);
session.access();
session.setId(msg.getSessionID(), notifySessionListenersOnReplication);
session.resetDeltaRequest();
return;
String expiredId = getIdInternal();
- if(expiredId != null && manager != null &&
+ if(notifyCluster && expiredId != null && manager != null &&
manager instanceof DeltaManager) {
DeltaManager dmanager = (DeltaManager)manager;
CatalinaCluster cluster = dmanager.getCluster();
</fix>
</changelog>
</subsection>
+ <subsection name="Cluster">
+ <changelog>
+ <fix>
+ <bug>51306</bug>: Avoid NPE when handleSESSION_EXPIRED is processed
+ while handleSESSION_CREATED is being processed. (kfujino)
+ </fix>
+ </changelog>
+ </subsection>
<subsection>
<changelog name="Web applications">
<fix>