ProtocolDispatchSelector causes NPE for unusual URIs, e.g. new URI("")
GoogleCodeExporter opened this issue · comments
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
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
- Changed state: Fixed