Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2008-11-24 07:59:57 +0000
committerTomasz Zarna2008-11-24 07:59:57 +0000
commitc557f37a7d6a14d735a868ce284a0581911fad46 (patch)
tree1274bcca887f031a034abe7ae44d7469d16e83ad /bundles/org.eclipse.core.net/src
parentceb33be864adad30015fabe4d0fb87ec822715e7 (diff)
downloadeclipse.platform.team-c557f37a7d6a14d735a868ce284a0581911fad46.tar.gz
eclipse.platform.team-c557f37a7d6a14d735a868ce284a0581911fad46.tar.xz
eclipse.platform.team-c557f37a7d6a14d735a868ce284a0581911fad46.zip
bug 255088: [Net] Malformed \uxxxx encoding exception in UnixProxyProvider.getEnv()
Diffstat (limited to 'bundles/org.eclipse.core.net/src')
-rw-r--r--bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/proxy/unix/UnixProxyProvider.java11
1 files changed, 4 insertions, 7 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 68abaa5ca..661cec9fe 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
@@ -11,11 +11,9 @@
*******************************************************************************/
package org.eclipse.core.internal.net.proxy.unix;
-import java.io.IOException;
import java.net.URI;
import java.util.ArrayList;
import java.util.Locale;
-import java.util.Properties;
import org.eclipse.core.internal.net.AbstractProxyProvider;
import org.eclipse.core.internal.net.Activator;
@@ -180,14 +178,13 @@ public class UnixProxyProvider extends AbstractProxyProvider {
}
private String getEnv(String env) {
- Properties props = new Properties();
try {
- props.load(Runtime.getRuntime().exec("env").getInputStream()); //$NON-NLS-1$
- } catch (IOException e) {
+ return System.getenv(env);
+ } catch (SecurityException e) {
Activator.logError(
- "Problem during accessing system variable: " + env, e); //$NON-NLS-1$
+ "Security exception occured wile getting env variable", e); //$NON-NLS-1$
+ return null;
}
- return props.getProperty(env);
}
private static void loadGnomeLib() {

Back to the top