[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2696) MockExternalContext throws a NPE
Samuel Mendenhall (JIRA)
jira-events at lists.jboss.org
Fri Feb 29 13:02:27 EST 2008
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: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list