Author: chris.laprun(a)jboss.com
Date: 2011-04-27 12:40:59 -0400 (Wed, 27 Apr 2011)
New Revision: 6373
Modified:
components/wsrp/branches/2.0.x/common/src/main/java/org/gatein/wsrp/servlet/ServletAccess.java
Log:
- GTNWSRP-224: Fixed getResponse to avoid NPE.
Modified:
components/wsrp/branches/2.0.x/common/src/main/java/org/gatein/wsrp/servlet/ServletAccess.java
===================================================================
---
components/wsrp/branches/2.0.x/common/src/main/java/org/gatein/wsrp/servlet/ServletAccess.java 2011-04-27
16:38:51 UTC (rev 6372)
+++
components/wsrp/branches/2.0.x/common/src/main/java/org/gatein/wsrp/servlet/ServletAccess.java 2011-04-27
16:40:59 UTC (rev 6373)
@@ -91,7 +91,8 @@
public static HttpServletResponse getResponse()
{
- return local.get().resp;
+ Invocation invocation = local.get();
+ return invocation != null ? invocation.resp : null;
}
private static class Invocation
Show replies by date