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

StaticProxySelector.select should not throw NullPointerExceptions

XMLWordPrintable

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

      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"

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

              Created:
              Updated:
              Resolved: