From 4db9373b29136ec90ca8505583dcb623440a377c Mon Sep 17 00:00:00 2001 From: diva Date: Sat, 31 Jan 2009 01:59:05 +0000 Subject: Oops. Forgot a try-catch on the last commit. --- OpenSim/Framework/HGNetworkServersInfo.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/HGNetworkServersInfo.cs b/OpenSim/Framework/HGNetworkServersInfo.cs index 4e7ed95..227200e 100644 --- a/OpenSim/Framework/HGNetworkServersInfo.cs +++ b/OpenSim/Framework/HGNetworkServersInfo.cs @@ -83,8 +83,12 @@ namespace OpenSim.Framework public static string ServerURI(string uri) { // Get rid of eventual slashes at the end - if (uri.EndsWith("/")) - uri = uri.Substring(0, uri.Length - 1); + try + { + if (uri.EndsWith("/")) + uri = uri.Substring(0, uri.Length - 1); + } + catch { } IPAddress ipaddr1 = null; string port1 = ""; -- cgit v1.1