Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-2085

NPE in HttpClientBuilder addExecInterceptorFirst and addExecInterceptorLast

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.0
    • 5.0.2
    • HttpClient (classic)
    • 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

          Activity

            People

              Unassigned Unassigned
              john.enters@gmail.com John Enters
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 20m
                  20m
                  Remaining:
                  Remaining Estimate - 20m
                  20m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified