[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to