You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Rohit Dewan (JIRA)" <ji...@apache.org> on 2007/05/11 08:40:42 UTC

[jira] Updated: (WW-1920) NullPointerException in CookieInterceptor when there are no cookies in request

     [ https://issues.apache.org/struts/browse/WW-1920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rohit Dewan updated WW-1920:
----------------------------

    Attachment: patchfile.txt

> NullPointerException in CookieInterceptor when there are no cookies in request
> ------------------------------------------------------------------------------
>
>                 Key: WW-1920
>                 URL: https://issues.apache.org/struts/browse/WW-1920
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Interceptors
>    Affects Versions: 2.0.7, 2.0.8
>            Reporter: Rohit Dewan
>         Attachments: patchfile.txt
>
>
> As per the contract, the getCookies() method in HTTPServletRequest returns null if there are no cookies in the request. The CookieInterceptor code does not check for this condition and attempts to use the returned object which results in a NullPointerException.
> I will attach a patch which should resolve the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.