You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Carter Kozak (Jira)" <ji...@apache.org> on 2020/06/09 17:28:00 UTC
[jira] [Commented] (HTTPCLIENT-2083) HttpClientBuilder
addExecInterceptorFirst and addExecInterceptorLast NPE
[ https://issues.apache.org/jira/browse/HTTPCLIENT-2083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17129651#comment-17129651 ]
Carter Kozak commented on HTTPCLIENT-2083:
------------------------------------------
I've created a PR with my proposed fix: https://github.com/apache/httpcomponents-client/pull/227
> HttpClientBuilder addExecInterceptorFirst and addExecInterceptorLast NPE
> ------------------------------------------------------------------------
>
> Key: HTTPCLIENT-2083
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2083
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpClient (classic)
> Affects Versions: 5.0.1
> Reporter: Carter Kozak
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Calling HttpClientBuilder.addExecInterceptorFirst or HttpClientBuilder.addExecInterceptorLast without first using addExecInterceptorBefore, addExecInterceptorBefore, or replaceExecInterceptor results in a NullPointerException.
> Unlike other builder methods addExecInterceptorFirst and addExecInterceptorLast do not first do a null check to conditionally initialize the interceptors list.
--
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