mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-23 04:22:05 +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:
parent
c4e971c350
commit
8704d5ac7b
1 changed files with 0 additions and 3 deletions
|
@ -105,9 +105,6 @@ public class StringUtils {
|
||||||
if (atIndex + 1 > XMPPAddress.length()) {
|
if (atIndex + 1 > XMPPAddress.length()) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
if (atIndex < 0) {
|
|
||||||
atIndex = 0;
|
|
||||||
}
|
|
||||||
int slashIndex = XMPPAddress.indexOf("/");
|
int slashIndex = XMPPAddress.indexOf("/");
|
||||||
if (slashIndex > 0) {
|
if (slashIndex > 0) {
|
||||||
return XMPPAddress.substring(atIndex + 1, slashIndex);
|
return XMPPAddress.substring(atIndex + 1, slashIndex);
|
||||||
|
|
Loading…
Reference in a new issue