]
Pete Muir closed JBSEAM-2696.
-----------------------------
Resolution: Incomplete Description
MockExternalContext throws a NPE
--------------------------------
Key: JBSEAM-2696
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2696
Project: JBoss Seam
Issue Type: Bug
Components: Tools
Affects Versions: 1.2.1.GA
Reporter: Samuel Mendenhall
Priority: Minor
Attachments: stacktrace.txt
It looks like
http://jira.jboss.com/jira/browse/JBSEAM-795 was not resolved as in the
last comment a user still has problems, and I have another customer raising an issue with
this not being fixed.
Proposed patch from customer:
package org.jboss.seam.mock;
@@ -181,9 +181,12 @@
public Map getRequestCookieMap()
{
Map<String, Cookie> cookieMap = new HashMap<String, Cookie>();
- for (Cookie cookie : request.getCookies())
+ if (request != null)
{
- cookieMap.put(cookie.getName(), cookie);
+ for (Cookie cookie : request.getCookies())
+ {
+ cookieMap.put(cookie.getName(), cookie);
+ }
}
return cookieMap;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: