[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-2696) MockExternalContext throws a NPE
Samuel Mendenhall (JIRA)
jira-events at lists.jboss.org
Fri Feb 29 13:02:30 EST 2008
[ http://jira.jboss.com/jira/browse/JBSEAM-2696?page=all ]
Samuel Mendenhall updated JBSEAM-2696:
--------------------------------------
Attachment: stacktrace.txt
> 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