DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26121>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26121

javax.servlet.http.Cookie#setDomain(String) throws NullPointerException for null 
parameter

           Summary: javax.servlet.http.Cookie#setDomain(String) throws
                    NullPointerException for null parameter
           Product: Tomcat 5
           Version: Nightly Build
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The javax.servlet.http.Cookie#setDomain(String) method throws a 
NullPointerException for a parameter value of null, though the javadocs does 
not mention that a null value is not acceptable or will result in an exception.

So either the javadocs should be changed or else a null check should be done 
before invoking toLowerCase() on the parameter.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to