StaticProxySelector.select should not throw NullPointerExceptions

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 22
    • Affects Version/s: 11, 17, 21
    • Component/s: 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"

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

              Created:
              Updated:
              Resolved: