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

AsyncCachingExec throws NPE when response body is null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.0.3
    • 5.0.4, 5.1-beta1
    • HttpClient (async)
    • None

    Description

      https://github.com/apache/httpcomponents-client/blob/master/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/AsyncCachingExec.java#L160

       

      This makes client's returned future/callback susccess(AsyncExecCallback#handleResponse triggers this?) but AsyncResponseConsumer/AsyncExecCallback failed.

       

      Curious if it should avoid exception here.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            kojilin koji lin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: