From 55aa8d6be7423d9d496d9eacfc0ad47215a300ce Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 10:03:50 +0000 Subject: Utilisateur : Fcolin Date : 13/02/06 Heure : 15:48 Archivé dans $/CSharp/Ivy/IvyPPC Commentaire: (vss 23) --- CSharp/Ivy/IvyPPC/IvyWatcher.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/CSharp/Ivy/IvyPPC/IvyWatcher.cs b/CSharp/Ivy/IvyPPC/IvyWatcher.cs index 0db24aa..b164260 100644 --- a/CSharp/Ivy/IvyPPC/IvyWatcher.cs +++ b/CSharp/Ivy/IvyPPC/IvyWatcher.cs @@ -196,6 +196,7 @@ namespace IvyBus internal static int getPort(string net) { + if (net == null) return Ivy.DEFAULT_PORT; int sep_index = net.LastIndexOf(":"); int port = (sep_index == - 1)?Ivy.DEFAULT_PORT:Int32.Parse(net.Substring(sep_index + 1)); return port; -- cgit v1.1