Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@2232 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
pmuir committed Mar 27, 2009
1 parent ad4fb04 commit 33a8bc4
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -112,6 +112,10 @@ public void beginRequest(HttpServletRequest request)
public void endRequest(HttpServletRequest request)
{
BeanStore beanStore = (BeanStore) request.getAttribute(REQUEST_ATTRIBUTE_NAME);
if (beanStore == null)
{
throw new IllegalStateException("Cannot obtain request scoped beans from the request");
}
super.endRequest(request.getRequestURI(), beanStore);
SessionContext.INSTANCE.setBeanStore(null);
}
Expand Down

0 comments on commit 33a8bc4

Please sign in to comment.