Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-07-06 00:43:17 +0000
committerslewis2007-07-06 00:43:17 +0000
commit526261a4a2373f02b808a930a923a72660d9cd2a (patch)
treea5968aa1769ca3390e7f01ca18333e9252221986 /providers/bundles/org.eclipse.ecf.provider.irc.ui
parentf75124c54990a840fa858609ca1567205cc364ad (diff)
downloadorg.eclipse.ecf-526261a4a2373f02b808a930a923a72660d9cd2a.tar.gz
org.eclipse.ecf-526261a4a2373f02b808a930a923a72660d9cd2a.tar.xz
org.eclipse.ecf-526261a4a2373f02b808a930a923a72660d9cd2a.zip
Fix for bug #195009
Diffstat (limited to 'providers/bundles/org.eclipse.ecf.provider.irc.ui')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.irc.ui/src/org/eclipse/ecf/internal/irc/ui/wizards/IRCConnectWizardPage.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.irc.ui/src/org/eclipse/ecf/internal/irc/ui/wizards/IRCConnectWizardPage.java b/providers/bundles/org.eclipse.ecf.provider.irc.ui/src/org/eclipse/ecf/internal/irc/ui/wizards/IRCConnectWizardPage.java
index f23af546c..23e078c7c 100644
--- a/providers/bundles/org.eclipse.ecf.provider.irc.ui/src/org/eclipse/ecf/internal/irc/ui/wizards/IRCConnectWizardPage.java
+++ b/providers/bundles/org.eclipse.ecf.provider.irc.ui/src/org/eclipse/ecf/internal/irc/ui/wizards/IRCConnectWizardPage.java
@@ -68,7 +68,9 @@ final class IRCConnectWizardPage extends WizardPage {
protected String getPasswordKeyFromUserName(String username) {
if (username == null || username.equals("")) return null;
else {
- return username.substring(0,username.indexOf("/"));
+ int slashIndex = username.indexOf("/");
+ if (slashIndex == -1) return username;
+ else return username.substring(0,username.indexOf("/"));
}
}
protected void restorePassword(String username) {

Back to the top