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 2011/09/02 17:41:10 UTC

[jira] [Commented] (HTTPCLIENT-1122) NPE in RequestProxyAuthentication on Android

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096054#comment-13096054 ] 

Oleg Kalnichevski commented on HTTPCLIENT-1122:
-----------------------------------------------

Michael,

It is the same situation as with HTTPCORE-263. I really have no idea how to reproduce the issue and suspect the problem might be a side effect of obfuscation with Proguard. I will not be able to fix the problem without a reproducer.

Oleg 

> NPE in RequestProxyAuthentication on Android
> --------------------------------------------
>
>                 Key: HTTPCLIENT-1122
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1122
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.1.1
>         Environment: Android 2.3.4. Using repackaged httpcore 4.1.1 in an app obfuscated with Proguard.
> must be very rare as I only saw it once for > 10K users.
>            Reporter: Michael Pujos
>            Priority: Minor
>
> Got a NPE backtrace in RequestProxyAuthentication.process(). 
> HttpRoute route = conn.getRoute();
>         if (route.isTunnelled()) {      <= line 88, NPE here
>             return;
>         }
> There's no null check on the returned route although getRoute() can return null.
> I guess it's not supposed to happen.
> In the httpclient code, there's a few more calls to getRoute() without a null check on the returned route.
> java.lang.NullPointerException
> at com.bubblesoft.org.apache.http.client.protocol.RequestProxyAuthentication.process(SourceFile:88)
> at com.bubblesoft.org.apache.http.protocol.ImmutableHttpProcessor.process(SourceFile:108)
> at com.bubblesoft.org.apache.http.protocol.HttpRequestExecutor.preProcess(SourceFile:174)
> at com.bubblesoft.org.apache.http.impl.client.DefaultRequestDirector.execute(SourceFile:457)
> at com.bubblesoft.org.apache.http.impl.client.AbstractHttpClient.createHttpProcessor(SourceFile:821)
>                                                                  execute
> at com.bubblesoft.org.apache.http.impl.client.AbstractHttpClient.createHttpProcessor(SourceFile:755)
>                                                                  execute
> at com.bubblesoft.org.apache.http.impl.client.AbstractHttpClient.createHttpProcessor(SourceFile:733)
>                                                                  execute

--
This message is automatically generated by JIRA.
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