mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-23 13:07:59 +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("@");
|
||||
// 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("/");
|
||||
|
|
Loading…
Reference in a new issue