Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2008-10-14 08:34:22 +0000
committerTomasz Zarna2008-10-14 08:34:22 +0000
commite5ba66a6bbe3caa1ae4767a53c2d87856d0201de (patch)
treee645d898925becc3b421b946f45c0c9d055429f9 /bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net
parent21729ff265d9384025e399e6ac17f4eea6b8af65 (diff)
downloadeclipse.platform.team-e5ba66a6bbe3caa1ae4767a53c2d87856d0201de.tar.gz
eclipse.platform.team-e5ba66a6bbe3caa1ae4767a53c2d87856d0201de.tar.xz
eclipse.platform.team-e5ba66a6bbe3caa1ae4767a53c2d87856d0201de.zip
250707: [Proxy] remains an issue : if gnome proxy is set to direct connection pd is null and the java code does not handle that
Diffstat (limited to 'bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net')
-rw-r--r--bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/proxy/unix/UnixProxyProvider.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/proxy/unix/UnixProxyProvider.java b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/proxy/unix/UnixProxyProvider.java
index 91a4399f8..414ed3323 100644
--- a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/proxy/unix/UnixProxyProvider.java
+++ b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/proxy/unix/UnixProxyProvider.java
@@ -159,10 +159,12 @@ public class UnixProxyProvider extends AbstractProxyProvider {
try {
// Then ask Gnome
pd = getGConfProxyInfo(protocol);
- if (Policy.DEBUG_SYSTEM_PROVIDERS)
- Policy.debug("Got Gnome proxy: " + pd); //$NON-NLS-1$
- pd.setSource("LINUX_GNOME"); //$NON-NLS-1$
- return pd;
+ if (pd != null) {
+ if (Policy.DEBUG_SYSTEM_PROVIDERS)
+ Policy.debug("Got Gnome proxy: " + pd); //$NON-NLS-1$
+ pd.setSource("LINUX_GNOME"); //$NON-NLS-1$
+ return pd;
+ }
} catch (UnsatisfiedLinkError e) {
// The library should be loaded, so this is a real exception
Activator.logError(

Back to the top