From 554f4fb1ecb315509e86aef2dad5c94faccfe500 Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Wed, 17 Dec 2003 13:59:20 +0000 Subject: [PATCH] Fixes bug parsing server name git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2179 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/util/StringUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("/");