This is an automated email from the ASF dual-hosted git repository.
skygo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new aa61d9dea7 fail proxy pac on windows if no URL
new 775d169094 Merge pull request #5935 from ebarboni/autopacissue
aa61d9dea7 is described below
commit aa61d9dea78e6796f0fca49747145fff95b61cfb
Author: Eric Barboni <[email protected]>
AuthorDate: Thu May 11 14:57:49 2023 +0200
fail proxy pac on windows if no URL
---
.../src/org/netbeans/core/network/proxy/ProxyAutoConfig.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/platform/core.network/src/org/netbeans/core/network/proxy/ProxyAutoConfig.java
b/platform/core.network/src/org/netbeans/core/network/proxy/ProxyAutoConfig.java
index 992e9c1ab4..de94996c80 100644
---
a/platform/core.network/src/org/netbeans/core/network/proxy/ProxyAutoConfig.java
+++
b/platform/core.network/src/org/netbeans/core/network/proxy/ProxyAutoConfig.java
@@ -96,6 +96,9 @@ public class ProxyAutoConfig {
} catch (MalformedURLException ex) {
LOGGER.log(Level.INFO, "PAC URL is malformed : ", ex);
return;
+ } catch (UnknownHostException ex) {
+ LOGGER.log(Level.INFO, "PAC script {0} unavailable, proxy
disabled", pacURI);
+ return;
} catch (IOException ex) {
LOGGER.log(Level.INFO, "InputStream for " + pacURI + " throws
", ex);
return;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists