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

fluent Executor volatile access allows NPEs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0.4, 5.1
    • Fluent HC
    • None

    Description

      The org.apache.hc.client5.http.fluent.Executor class checks volatile fields for null before loading them a second time for execution. If the field is updated to null at runtime, this can result in a NPE.
      Even when this doesn't result in failures, it's better for performance if we can use a single volatile load rather than two.

      Attachments

        Activity

          People

            ckozak Carter Kozak
            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 - 20m
                20m