Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2009-02-24 10:04:25 +0000
committerTomasz Zarna2009-02-24 10:04:25 +0000
commit2ddfc10dab1cf36ca50b92d5edc7637f337d0db4 (patch)
tree5b6330bb7f73ae4fc6099bc73c27fa1ee3c3f87c
parent41b7d0c732a9abb5e5662ce4f4427d3c1a2dc7c4 (diff)
downloadeclipse.platform.team-2ddfc10dab1cf36ca50b92d5edc7637f337d0db4.tar.gz
eclipse.platform.team-2ddfc10dab1cf36ca50b92d5edc7637f337d0db4.tar.xz
eclipse.platform.team-2ddfc10dab1cf36ca50b92d5edc7637f337d0db4.zip
bug 265839: NPE from IProxyData.setHost
-rw-r--r--bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyData.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyData.java b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyData.java
index b51172685..db37e0f14 100644
--- a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyData.java
+++ b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyData.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2008 IBM Corporation and others.
+ * Copyright (c) 2007, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -61,7 +61,7 @@ public class ProxyData implements IProxyData {
}
public void setHost(String host) {
- if (host.length() == 0)
+ if (host != null && host.length() == 0)
host = null;
this.host = host;
}

Back to the top