Fixed problem parsing the server name of addresses with this format <domain>

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2395 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2004-10-23 05:09:41 +00:00 committed by gaston
parent c4e971c350
commit 8704d5ac7b
1 changed files with 0 additions and 3 deletions

View File

@ -105,9 +105,6 @@ public class StringUtils {
if (atIndex + 1 > XMPPAddress.length()) {
return "";
}
if (atIndex < 0) {
atIndex = 0;
}
int slashIndex = XMPPAddress.indexOf("/");
if (slashIndex > 0) {
return XMPPAddress.substring(atIndex + 1, slashIndex);