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 2020/11/04 12:42:00 UTC
[jira] [Commented] (HTTPCLIENT-2126) AsyncCachingExec throws NPE
when response body is null
[ https://issues.apache.org/jira/browse/HTTPCLIENT-2126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17226027#comment-17226027 ]
Oleg Kalnichevski commented on HTTPCLIENT-2126:
-----------------------------------------------
[~kojilin] Do you happen to have a test case that actually triggers the NPE?
Oleg
> AsyncCachingExec throws NPE when response body is null
> ------------------------------------------------------
>
> Key: HTTPCLIENT-2126
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2126
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpClient (async)
> Affects Versions: 5.0.3
> Reporter: koji lin
> Priority: Minor
> Fix For: 5.0.4
>
>
> [https://github.com/apache/httpcomponents-client/blob/master/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/AsyncCachingExec.java#L160]
>
> This makes client's returned future/callback susccess(AsyncExecCallback#handleResponse triggers this?) but AsyncResponseConsumer/AsyncExecCallback failed.
>
> Curious if it should avoid exception here.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org