Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2008-05-28 17:58:40 +0000
committerTomasz Zarna2008-05-28 17:58:40 +0000
commitfae22903cdac0599ca296d8c0bcd44300330f870 (patch)
treef1b3da6d78555f11fb2825d35b9485994826475b /bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs
parent3148e707070176d660665b62a23176b09e15b173 (diff)
downloadeclipse.platform.team-fae22903cdac0599ca296d8c0bcd44300330f870.tar.gz
eclipse.platform.team-fae22903cdac0599ca296d8c0bcd44300330f870.tar.xz
eclipse.platform.team-fae22903cdac0599ca296d8c0bcd44300330f870.zip
bug 231190: NPE in CVSRepositoryLocation.fromString
Diffstat (limited to 'bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs')
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java
index 333efca79..b05904858 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java
@@ -10,7 +10,6 @@
*******************************************************************************/
package org.eclipse.team.internal.ccvs.core.connection;
-
import java.io.IOException;
import java.util.*;
@@ -349,7 +348,7 @@ public class CVSRepositoryLocation extends PlatformObject implements ICVSReposit
// Decrement the end since the slash is part of the path
if (end != -1) end--;
}
- String host = (optionStart != -1) ? hmOptions.get("hostname").toString() : location.substring(start, hostEnd); //$NON-NLS-1$
+ String host = (hmOptions.containsKey("hostname")) ? hmOptions.get("hostname").toString() : location.substring(start, hostEnd); //$NON-NLS-1$ //$NON-NLS-2$
int port = USE_DEFAULT_PORT;
boolean havePort = false;
if (hmOptions.containsKey("port")) { //$NON-NLS-1$

Back to the top