From 67fbd5ed5bb2da7c7925eb7969286e96c532ebcc Mon Sep 17 00:00:00 2001 From: jvyden Date: Fri, 10 Dec 2021 18:26:48 -0500 Subject: [PATCH] Fix IndexOutOfRangeException on startup --- ProjectLighthouse/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)