Author: pete.muir(a)jboss.org
Date: 2009-03-27 13:10:23 -0400 (Fri, 27 Mar 2009)
New Revision: 2232
Modified:
ri/trunk/impl/src/main/java/org/jboss/webbeans/servlet/ServletLifecycle.java
Log:
minor
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/servlet/ServletLifecycle.java
===================================================================
---
ri/trunk/impl/src/main/java/org/jboss/webbeans/servlet/ServletLifecycle.java 2009-03-27
17:09:05 UTC (rev 2231)
+++
ri/trunk/impl/src/main/java/org/jboss/webbeans/servlet/ServletLifecycle.java 2009-03-27
17:10:23 UTC (rev 2232)
@@ -112,6 +112,10 @@
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);
}
Show replies by date