You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "wangzhenghang (JIRA)" <ji...@apache.org> on 2013/09/16 14:57:51 UTC
[jira] [Created] (HTTPCLIENT-1399) NPE in
org.apache.http.client.methods.RequestBuilder line 237
wangzhenghang created HTTPCLIENT-1399:
-----------------------------------------
Summary: NPE in org.apache.http.client.methods.RequestBuilder line 237
Key: HTTPCLIENT-1399
URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1399
Project: HttpComponents HttpClient
Issue Type: Bug
Components: HttpClient
Affects Versions: 4.3 Final
Reporter: wangzhenghang
public RequestBuilder setHeader(final String name, final String value) {
if (headergroup != null) {
headergroup = new HeaderGroup();
}
this.headergroup.updateHeader(new BasicHeader(name, value));
return this;
}
Obviously it was a copy-paste error. "headergroup != null" should be "headergroup == null"
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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