From 8704d5ac7b3435e4e9c910349c27653a249eba6c Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Sat, 23 Oct 2004 05:09:41 +0000 Subject: [PATCH] Fixed problem parsing the server name of addresses with this format git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2395 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/util/StringUtils.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/source/org/jivesoftware/smack/util/StringUtils.java b/source/org/jivesoftware/smack/util/StringUtils.java index f578df74e..cd3b375f5 100644 --- a/source/org/jivesoftware/smack/util/StringUtils.java +++ b/source/org/jivesoftware/smack/util/StringUtils.java @@ -105,9 +105,6 @@ public class StringUtils { if (atIndex + 1 > XMPPAddress.length()) { return ""; } - if (atIndex < 0) { - atIndex = 0; - } int slashIndex = XMPPAddress.indexOf("/"); if (slashIndex > 0) { return XMPPAddress.substring(atIndex + 1, slashIndex);