1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-23 11:07:57 +01:00

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

View file

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