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"
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"
- csr for
-
JDK-8318164 StaticProxySelector.select should not throw NullPointerExceptions
-
- Closed
-