[
https://issues.apache.org/jira/browse/HTTPCLIENT-2083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17134049#comment-17134049
]
ASF subversion and git services commented on HTTPCLIENT-2083:
-------------------------------------------------------------
Commit a22d889807eb74a0d4b8dd8d6360802a391a6eb3 in httpcomponents-client's
branch refs/heads/master from Carter Kozak
[ https://gitbox.apache.org/repos/asf?p=httpcomponents-client.git;h=a22d889 ]
HTTPCLIENT-2083: Fix NPE when classic client interceptors are added
Previously HttpClientBuilder methods addExecInterceptorFirst and
addExecInterceptorLast resulted in NullPointerExceptions because
the execInterceptors list had not been initialized yet.
> 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: 1h
> 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]