1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-27 00:32:07 +01:00

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

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);