https://bz.apache.org/bugzilla/show_bug.cgi?id=60488

--- Comment #3 from Ben Wolfe <apa...@ben.eflow.org> ---
The test in my code does this, why should I need to generate mock objects?

_request = new Request();
Context context = new StandardContext();
context.setCookieProcessor( new LegacyCookieProcessor() );
_request.getMappingData().context = context;
_request.addCookie( new Cookie( "session_id", "s1" ) ); // NPE happens here


If I add the cookie before setting the context it passes because of null check
in convertCookies().  

If I call _request.clearCookies() before addCookie() it works because the
cookiesConverted boolean is set to true.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to