KEYCLOAK-1507

Tomcat Adapter throws NPE under certain conditions
This commit is contained in:
Stian Thorgersen 2015-07-02 09:08:40 +02:00
parent f59d42d5d3
commit 5af4785ba1

View file

@ -127,7 +127,9 @@ public abstract class AbstractKeycloakAuthenticatorValve extends FormAuthenticat
}
protected void beforeStop() {
nodesRegistrationManagement.stop();
if (nodesRegistrationManagement != null) {
nodesRegistrationManagement.stop();
}
}
private static InputStream getJSONFromServletContext(ServletContext servletContext) {