hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clément Denis (JIRA) <j...@apache.org>
Subject [jira] [Updated] (HTTPCLIENT-1196) NPE in UrlEncodedFormEntity constructors without charsets
Date Sun, 27 May 2012 16:57:22 GMT

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

Clément Denis updated HTTPCLIENT-1196:
--------------------------------------

    Description: 
The two constructors of UrlEncodedFormEntity without charset parameters throw a NPE.
This is a regression from 4.1.x.

Here is a test simple case :
{code}
List<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();
params.add(new BasicNameValuePair("test", "test"));
new UrlEncodedFormEntity(params);
{code}

  was:
The two constructors of UrlEncodedFormEntity without charset parameters throw a NPE.
This is a regression from 4.2.X.

Here is a test simple case :
{code}
List<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();
params.add(new BasicNameValuePair("test", "test"));
new UrlEncodedFormEntity(params);
{code}

    
> NPE in UrlEncodedFormEntity constructors without charsets
> ---------------------------------------------------------
>
>                 Key: HTTPCLIENT-1196
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1196
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.2 Final
>            Reporter: Clément Denis
>            Priority: Critical
>
> The two constructors of UrlEncodedFormEntity without charset parameters throw a NPE.
> This is a regression from 4.1.x.
> Here is a test simple case :
> {code}
> List<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();
> params.add(new BasicNameValuePair("test", "test"));
> new UrlEncodedFormEntity(params);
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message