diff --git a/ProjectLighthouse/Program.cs b/ProjectLighthouse/Program.cs index 9f3a035f..cfef9200 100644 --- a/ProjectLighthouse/Program.cs +++ b/ProjectLighthouse/Program.cs @@ -18,7 +18,7 @@ namespace LBPUnion.ProjectLighthouse { public static void Main(string[] args) { - if (args[0] == "--wait-for-debugger") + if (args.Length != 0 && args[0] == "--wait-for-debugger") { Console.WriteLine("Waiting for a debugger to be attached..."); while (!Debugger.IsAttached)