From c7a6d627f2925440f54a55a407d7a2d5fb4be623 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Mon, 14 May 2007 16:33:44 +0000 Subject: Check if we have arguments before processing them. --- OpenGridServices.GridServer/Main.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenGridServices.GridServer/Main.cs') diff --git a/OpenGridServices.GridServer/Main.cs b/OpenGridServices.GridServer/Main.cs index 54db7c6..cacef5e 100644 --- a/OpenGridServices.GridServer/Main.cs +++ b/OpenGridServices.GridServer/Main.cs @@ -66,7 +66,10 @@ namespace OpenGridServices.GridServer [STAThread] public static void Main(string[] args) { - if(args[0]=="-setuponly") setuponly=true; + if (args.Length > 0) + { + if (args[0] == "-setuponly") setuponly = true; + } Console.WriteLine("Starting...\n"); thegrid = new OpenGrid_Main(); -- cgit v1.1