From 6a13d3ef338bc6f5d97b672fcbcceb06eff714d6 Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Thu, 1 Aug 2024 17:23:51 -0500 Subject: [PATCH] Fix exception after installing from context menu --- LANCommander.Client/Services/LibraryService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/LANCommander.Client/Services/LibraryService.cs b/LANCommander.Client/Services/LibraryService.cs index 7640e07b..175e2ea3 100644 --- a/LANCommander.Client/Services/LibraryService.cs +++ b/LANCommander.Client/Services/LibraryService.cs @@ -225,7 +225,9 @@ namespace LANCommander.Client.Services public bool IsRunning(LibraryItem libraryItem) { - return IsRunning(libraryItem.Key); + if (libraryItem != null) + return IsRunning(libraryItem.Key); + return false; } public bool IsRunning(Guid id)