summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfcolin2007-02-01 09:52:01 +0000
committerfcolin2007-02-01 09:52:01 +0000
commit0b3332e904174414c5775dd545e78b691ab92ee1 (patch)
tree256e6a057d4074e241ed841b8d4ac9e7010db829
parent2843db30512d3c6aea23a16929fb8f1e8611462a (diff)
downloadivy-csharp-0b3332e904174414c5775dd545e78b691ab92ee1.zip
ivy-csharp-0b3332e904174414c5775dd545e78b691ab92ee1.tar.gz
ivy-csharp-0b3332e904174414c5775dd545e78b691ab92ee1.tar.bz2
ivy-csharp-0b3332e904174414c5775dd545e78b691ab92ee1.tar.xz
Utilisateur : Fcolin Date : 13/02/06 Heure : 15:48 Archivé dans $/CSharp/Ivy/IvyPPC Commentaire: (vss 23)
-rw-r--r--CSharp/Ivy/Ivy/IvyWatcher.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/CSharp/Ivy/Ivy/IvyWatcher.cs b/CSharp/Ivy/Ivy/IvyWatcher.cs
index 0db24aa..b164260 100644
--- a/CSharp/Ivy/Ivy/IvyWatcher.cs
+++ b/CSharp/Ivy/Ivy/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;