1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-29 17:52:06 +01:00

Small fix.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1857 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2003-03-24 15:41:11 +00:00 committed by mtucker
parent e5586093f0
commit 7bc473fd24

View file

@ -80,11 +80,12 @@ public class StringUtils {
return null; return null;
} }
int atIndex = JID.indexOf("@"); int atIndex = JID.indexOf("@");
if (atIndex > 0) { if (atIndex < 0) {
return JID.substring(0, atIndex); return JID.substring(0);
} }
else { else {
return JID.substring(0); return JID.substring(0, atIndex);
} }
} }