bigbadhacker / proxy-vole

Automatically exported from code.google.com/p/proxy-vole
0 stars 0 forks source link

ProtocolDispatchSelector causes NPE for unusual URIs, e.g. new URI("") #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

public class NPETest {
    public static void main(String[] args) throws URISyntaxException {
        ProxySearch proxySearch = ProxySearch.getDefaultProxySearch();
        ProxySelector myProxySelector = proxySearch.getProxySelector();
        ProxySelector.setDefault(myProxySelector); // adapt global proxy selector

        myProxySelector.select(new URI(""));
    }
}

What is the expected output? What do you see instead?
- graceful handling of such URIs

What version of the product are you using? On what operating system?
- 20111102

Original issue reported on code.google.com by Dominik....@gmail.com on 26 Jul 2012 at 11:52

GoogleCodeExporter commented 9 years ago
Hi,
I have implemented some checks to handle this kind of URIs more gracefully.
Please try out the newest version it should resolve the issues.
Thanks for reporting this.

Have fun,
- Rossi

Original comment by rosstaus...@googlemail.com on 27 Jul 2012 at 9:23