Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8225583

Examine the HttpResponse.BodySubscribers for null handling and multiple subscriptions

XMLWordPrintable

    • b02

        The convenience BodySubscriber implementations in HttpResponse.BodySubscribers do not consistently throw NPE when passed a null value. For example:

        jshell> var s = java.net.http.HttpResponse.BodySubscribers.ofInputStream()
        s ==> jdk.internal.net.http.ResponseSubscribers$HttpResponseInputStream@6d21714c

        jshell> s.onSubscribe(null)

              chegar Chris Hegarty
              chegar Chris Hegarty
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: