How to unset Socks Proxy
<p>I am able to set a socks proxy server by code like this:</p>

<pre><code>    System.getProperties().setProperty("socksProxySet", "true");
    System.getProperties().setProperty("socksProxyHost", address);
    System.getProperties().setProperty("socksProxyPort", port);
</code></pre>

<p>Accordind to <a href="http://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html" rel="nofollow">http://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html</a>, I can unset a HTTP, HTTPS and FTP proxy like this:</p>

<pre><code>    System.setProperty("http.proxyHost", null);
</code></pre>

<p>Question: Can I unset a socks proxy as well?</p>

<p>By doing:</p>

<pre><code>    System.getProperties().setProperty("socksProxyHost", null);
</code></pre>

<p>I got nothing but a NullPointerException...</p>

<p>Ty</p>
