Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
5.0
-
None
Description
NPE thrown with the following:
HttpClients.custom().addExecInterceptorFirst("name", (ExecChainHandler) (request, scope, chain) -> null).build(); HttpClients.custom().addExecInterceptorLast("name", (ExecChainHandler) (request, scope, chain) -> null).build();
In org.apache.hc.client5.http.impl.classic.HttpClientBuilder
add the following to addExecInterceptorFirst (line 455) and addExecInterceptorLast (line 465)
if (execInterceptors == null) { execInterceptors = new LinkedList<>(); }
Attachments
Issue Links
- duplicates
-
HTTPCLIENT-2083 HttpClientBuilder addExecInterceptorFirst and addExecInterceptorLast NPE
- Resolved