You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2012/12/17 22:54:12 UTC
[jira] [Resolved] (HTTPCLIENT-1279) NullPointerException
(apparently) when authenticating
[ https://issues.apache.org/jira/browse/HTTPCLIENT-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski resolved HTTPCLIENT-1279.
-------------------------------------------
Resolution: Fixed
Fixed in the SVN trunk and 4.2.x branch.
Oleg
> NullPointerException (apparently) when authenticating
> -----------------------------------------------------
>
> Key: HTTPCLIENT-1279
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1279
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpClient
> Affects Versions: 4.2.2
> Reporter: Sebastiano Vigna
> Fix For: 4.2.3
>
>
> Run the following class. This is likely to be a badly configured server, but DefaultHttpClient should not in any case throw a NPE.
> import org.apache.http.client.ResponseHandler;
> import org.apache.http.client.HttpClient;
> import org.apache.http.client.methods.HttpGet;
> import org.apache.http.impl.client.BasicResponseHandler;
> import org.apache.http.impl.client.DefaultHttpClient;
> public class Bug {
> public final static void main(String[] args) throws Exception {
> HttpClient httpclient = new DefaultHttpClient();
> HttpGet httpget = new HttpGet("http://www.gruppotirrenia.it/robots.txt");
> httpclient.execute(httpget);
> }
> }
--
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