[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-1746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oleg Kalnichevski resolved HTTPCLIENT-1746.
-------------------------------------------
       Resolution: Fixed
    Fix Version/s: 5.0 Alpha2
                   4.5.3

Fixed in SVN trunk and 4.5.x branch. Please review / re-test

Oleg

> URLEncodedUtils.parse(String, CharSet) in 4.4 causes an NPE on null input and 
> is not backward compatible
> --------------------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1746
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1746
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>            Reporter: Steve Briskin
>             Fix For: 4.5.3, 5.0 Alpha2
>
>
> In 4.2 and 4.3, {{URLEncodedUtils.parse(String, CharSet)}} returns an empty 
> List for a null String input.  
> In 4.4, {{URLEncodedUtils.parse(null, Charset.forName("UTF-8"))}} throws an 
> NullPointerException.
> For the sake of API backward compatibility, parse(String, CharSet) should 
> return an empty list.
> Note that parse(String, CharSet, char...) does the null check and returns an 
> empty list.  I think parse(String, CharSet) should have the same behavior.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to