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:
parent
0e33590936
commit
554f4fb1ec
1 changed files with 1 additions and 1 deletions
|
@ -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("/");
|
||||||
|
|
Loading…
Reference in a new issue