Hi Valdis,

Thanks for reporting this unexpected problem. I should have been more
curious about how autoboxing internally works!

To fix it, I've committed the following changes in SVN:
 - ClientInfo.port and ServerInfo.port are now 'int' instead of 'Integer' to
prevent autoboxing issues.

To report issues, you need to register yourself on Tigris.org at:
http://www.tigris.org/servlets/Join

Best regards,
Jerome  

> -----Message d'origine-----
> De : Valdis Rigdon [mailto:[EMAIL PROTECTED] 
> Envoyé : mercredi 10 janvier 2007 20:58
> À : [email protected]
> Objet : NPE in HttpRequest
> 
> Couldn't find a link on the issue site to submit an issue, so I'm 
> posting here...
> 
> There exists a potential for a NPE on line 108 in 
> HttpRequest, which I 
> happened to hit.  :)  The line is comparing a primitive int with an 
> Integer object.  In my case, the Integer was null.  "Under 
> the hood when 
> you autobox and treat an Integer as an int or vice versa, the 
> compiler 
> inserts a call to intValue()" 
> (http://www.theserverside.com/blogs/thread.tss?thread_id=41731), thus 
> generating a NPE.
> 

Reply via email to