Re: Code Review Request: 6953455 CookieStore.add() cannot handle null URI parameter, contrary to the API specification

2011-09-30 Thread Mike Duigou
This fix looks correct. I ran into this bug and this is the same fix I believed would fix the problem. Mike On Sep 30 2011, at 10:08 , Kurchi Hazra wrote: > > > Hi, > > The CookieStore.add() method throws a Null Pointer Exception when null is > passed as the uri parameter, although this

Code Review Request: 6953455 CookieStore.add() cannot handle null URI parameter, contrary to the API specification

2011-09-30 Thread Kurchi Hazra
Hi, The CookieStore.add() method throws a Null Pointer Exception when null is passed as the uri parameter, although this is allowed according to the method spec. The exception is thrown because uri.getHost() is called on a null uri in an effort to add it to the uriIndex, one of th