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

StaticProxySelector.select should not throw NullPointerExceptions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 22
    • 11, 17, 21
    • core-libs
    • None
    • b21

    Description

      The StaticProxySelector class returned by ProxySelector.of(InetSocketAddress) may throw a NullPointerException form select method when uri is null or uri.getScheme is null.

      This is in violation of the contract declared in ProxySelector.select, which states that the method should throw IllegalArgumentException "if the argument is null or if the protocol or host cannot be determined from the provided uri"

      Attachments

        Issue Links

          Activity

            People

              djelinski Daniel Jelinski
              djelinski Daniel Jelinski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: