Fix for - NPE in SessionHandlerValve.java accessing Tomcat's /manager app

master
Ranjith Manickam 2020-05-13 11:02:21 +05:30
parent 5d0c7aa7a1
commit 1f6e57c164
2 changed files with 6 additions and 2 deletions

View File

@ -31,7 +31,9 @@ public class SessionHandlerValve extends ValveBase {
LOGGER.error("Error processing request", ex);
throw new BackendException();
} finally {
this.manager.afterRequest();
if (this.manager != null) {
this.manager.afterRequest();
}
}
}
}

View File

@ -225,7 +225,9 @@ public class SingleSignOnValve extends SingleSignOn {
/** To set session manager. */
void setSessionManager(Manager manager) {
this.manager = (SessionManager) manager;
if (manager != null) {
this.manager = (SessionManager) manager;
}
}
/** To expire session. */