Improved exception handling if response already committed.

This commit is contained in:
Ben Alex 2004-05-23 23:57:29 +00:00
parent d5a6ea044d
commit 3f6961d855
1 changed files with 5 additions and 1 deletions

View File

@ -105,7 +105,11 @@ public class HttpSessionIntegrationFilter extends AbstractIntegrationFilter {
public Object extractFromContainer(ServletRequest request) {
if (request instanceof HttpServletRequest) {
HttpSession httpSession = ((HttpServletRequest) request).getSession();
HttpSession httpSession = null;
try {
httpSession = ((HttpServletRequest) request).getSession();
} catch (IllegalStateException ignored) {}
if (httpSession != null) {
Object authObject = httpSession.getAttribute(ACEGI_SECURITY_AUTHENTICATION_KEY);