Repository: tomee Updated Branches: refs/heads/develop db433d69a -> 68e57d7f3
if session id is null then we can't do much Project: http://git-wip-us.apache.org/repos/asf/tomee/repo Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/68e57d7f Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/68e57d7f Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/68e57d7f Branch: refs/heads/develop Commit: 68e57d7f3e8ab37f4aa8fb2a38c2dde2b119011b Parents: db433d6 Author: Romain Manni-Bucau <[email protected]> Authored: Tue Jan 27 14:11:42 2015 +0100 Committer: Romain Manni-Bucau <[email protected]> Committed: Tue Jan 27 14:11:42 2015 +0100 ---------------------------------------------------------------------- .../main/java/org/apache/openejb/cdi/CdiAppContextsService.java | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tomee/blob/68e57d7f/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiAppContextsService.java ---------------------------------------------------------------------- diff --git a/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiAppContextsService.java b/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiAppContextsService.java index 18e475e..a32afb0 100644 --- a/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiAppContextsService.java +++ b/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiAppContextsService.java @@ -186,6 +186,9 @@ public class CdiAppContextsService extends AbstractContextsService implements Co final Object event = HttpSessionContextSessionAware.class.isInstance(sc) ? HttpSessionContextSessionAware.class.cast(sc).getSession() : sc; if (HttpSession.class.isInstance(event)) { final HttpSession httpSession = HttpSession.class.cast(event); + if (httpSession.getId() == null) { + continue; + } initSessionContext(httpSession); try { httpSession.invalidate();
