From eb07d33ed55dc17a47688d557dc056eff49a2349 Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Wed, 30 Aug 2023 19:45:42 -0500 Subject: [PATCH] Default to stopped if server is null --- LANCommander/Services/ServerProcessService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/LANCommander/Services/ServerProcessService.cs b/LANCommander/Services/ServerProcessService.cs index b35fcc9..383c5bd 100644 --- a/LANCommander/Services/ServerProcessService.cs +++ b/LANCommander/Services/ServerProcessService.cs @@ -228,6 +228,9 @@ namespace LANCommander.Services { Process process = null; + if (server == null) + return ServerProcessStatus.Stopped; + if (Processes.ContainsKey(server.Id)) process = Processes[server.Id];