You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Clément Denis (JIRA)" <ji...@apache.org> on 2012/05/27 18:57:22 UTC
[jira] [Updated] (HTTPCLIENT-1196) NPE in UrlEncodedFormEntity
constructors without charsets
[ 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