diff --git a/source/org/jivesoftware/smack/util/StringUtils.java b/source/org/jivesoftware/smack/util/StringUtils.java index 36b7b40b5..78c9cd438 100644 --- a/source/org/jivesoftware/smack/util/StringUtils.java +++ b/source/org/jivesoftware/smack/util/StringUtils.java @@ -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("/");