Fixed bug in handling of sessions - some non-standard web apps (forwarding domains for example) in fact will have null sessions attached to their connections. Non-breaking change.

This commit is contained in:
wcrisman
2014-07-11 15:39:28 -07:00
parent 54b2f9b5ad
commit 66487c3b25
3 changed files with 11 additions and 9 deletions

View File

@@ -682,6 +682,7 @@ public void processRequest(final IRequest request, final IResponse response, fin
}//if//
if(!ignoreRequest) {
//Note: Session should always be non-null for a standard web app.//
synchronized(session) {
resourceRequestHandler.processRequest(request, response, session == null ? null : (SessionData) session.getApplicationData(), session == null ? null : (SecureSessionData) (isSecure ? session.getApplicationSecureData() : null), isSecure, connectionContext);
//Update the repository with the session changes as necessary.//