It's just a defensive null check, the ProxySelector could have come from anywhere, including user code or third party libraries (our intended use case is that it will be implemented by and set by the Proxy Vole library).