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

HttpClientBuilder addExecInterceptorFirst and addExecInterceptorLast NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.0.1
    • 5.0.2
    • HttpClient (classic)
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ckozak Carter Kozak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m