struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rohit Dewan (JIRA)" <j...@apache.org>
Subject [jira] Created: (WW-1920) NullPointerException in CookieInterceptor when there are no cookies in request
Date Fri, 11 May 2007 06:38:43 GMT
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


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.


Mime
View raw message