Fixes bug parsing server name

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2179 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2003-12-17 13:59:20 +00:00 committed by gdombiak
parent 0e33590936
commit 554f4fb1ec
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ public class StringUtils {
} }
int atIndex = XMPPAddress.indexOf("@"); int atIndex = XMPPAddress.indexOf("@");
// If the String ends with '@', return the empty string. // If the String ends with '@', return the empty string.
if (atIndex + 1 > XMPPAddress.length() || atIndex < 0) { if (atIndex + 1 > XMPPAddress.length()) {
return ""; return "";
} }
int slashIndex = XMPPAddress.indexOf("/"); int slashIndex = XMPPAddress.indexOf("/");