From dfcd3267e474f6fd66ccd0f3a087d107224f4c3f Mon Sep 17 00:00:00 2001 From: Bill Burke Date: Mon, 2 Jun 2014 12:02:42 -0400 Subject: [PATCH] NPE in as7 adapter logout --- .../org/keycloak/adapters/as7/CatalinaUserSessionManagement.java | 1 + .../keycloak/adapters/tomcat7/CatalinaUserSessionManagement.java | 1 + 2 files changed, 2 insertions(+) diff --git a/integration/as7-eap6/adapter/src/main/java/org/keycloak/adapters/as7/CatalinaUserSessionManagement.java b/integration/as7-eap6/adapter/src/main/java/org/keycloak/adapters/as7/CatalinaUserSessionManagement.java index ecca57ebda..ef3c2a1105 100755 --- a/integration/as7-eap6/adapter/src/main/java/org/keycloak/adapters/as7/CatalinaUserSessionManagement.java +++ b/integration/as7-eap6/adapter/src/main/java/org/keycloak/adapters/as7/CatalinaUserSessionManagement.java @@ -73,6 +73,7 @@ public class CatalinaUserSessionManagement implements SessionListener, UserSessi keycloakSessionMap.put(keycloakSessionId, sessions); sessions.httpSessionToKeycloakSession.put(sessionId, keycloakSessionId); sessions.keycloakSessionToHttpSession.put(keycloakSessionId, sessionId); + sessions.sessions.put(sessionId, session); session.addSessionListener(this); } diff --git a/integration/tomcat7/adapter/src/main/java/org/keycloak/adapters/tomcat7/CatalinaUserSessionManagement.java b/integration/tomcat7/adapter/src/main/java/org/keycloak/adapters/tomcat7/CatalinaUserSessionManagement.java index 8b521e88ad..4ec4b9792a 100755 --- a/integration/tomcat7/adapter/src/main/java/org/keycloak/adapters/tomcat7/CatalinaUserSessionManagement.java +++ b/integration/tomcat7/adapter/src/main/java/org/keycloak/adapters/tomcat7/CatalinaUserSessionManagement.java @@ -73,6 +73,7 @@ public class CatalinaUserSessionManagement implements SessionListener, UserSessi keycloakSessionMap.put(keycloakSessionId, sessions); sessions.httpSessionToKeycloakSession.put(sessionId, keycloakSessionId); sessions.keycloakSessionToHttpSession.put(keycloakSessionId, sessionId); + sessions.sessions.put(sessionId, session); session.addSessionListener(this); }