diff options
author | Omair Majid <[email protected]> | 2011-02-08 16:51:56 -0500 |
---|---|---|
committer | Omair Majid <[email protected]> | 2011-02-08 16:51:56 -0500 |
commit | a921e916cf72781d03f4f32b8b4733340d441975 (patch) | |
tree | 3c1dbfcd565ff35f18eb322e391409f1bd49d224 /netx | |
parent | 17633c352c8122f43a3534f7cc9cfb3244745642 (diff) |
Try to be as silent about proxy settings as possible
2011-02-08 Omair Majid <[email protected]>
* netx/net/sourceforge/jnlp/browser/BrowserAwareProxySelector.java
(initFromBrowserConfig): Do not try to create a URL from null.
(getFromBrowser): Only print informational messages in debug mode.
Diffstat (limited to 'netx')
-rw-r--r-- | netx/net/sourceforge/jnlp/browser/BrowserAwareProxySelector.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/netx/net/sourceforge/jnlp/browser/BrowserAwareProxySelector.java b/netx/net/sourceforge/jnlp/browser/BrowserAwareProxySelector.java index c53b36b..fb08325 100644 --- a/netx/net/sourceforge/jnlp/browser/BrowserAwareProxySelector.java +++ b/netx/net/sourceforge/jnlp/browser/BrowserAwareProxySelector.java @@ -120,7 +120,10 @@ public class BrowserAwareProxySelector extends JNLPProxySelector { } try { - browserAutoConfigUrl = new URL(prefs.get("network.proxy.autoconfig_url")); + String url = prefs.get("network.proxy.autoconfig_url"); + if (url != null) { + browserAutoConfigUrl = new URL(url); + } } catch (MalformedURLException e) { e.printStackTrace(); } @@ -195,7 +198,9 @@ public class BrowserAwareProxySelector extends JNLPProxySelector { if (optionDescription == null) { optionDescription = "Unknown"; } - System.err.println(R("RProxyFirefoxOptionNotImplemented", browserProxyType, optionDescription)); + if (JNLPRuntime.isDebug()) { + System.err.println(R("RProxyFirefoxOptionNotImplemented", browserProxyType, optionDescription)); + } proxies.add(Proxy.NO_PROXY); } |