From 221080db6b61fa7f523d7e25facec90fcd797335 Mon Sep 17 00:00:00 2001 From: Cheerpipe Date: Thu, 10 Jun 2021 12:29:31 -0400 Subject: [PATCH] Fix null object exception --- .../ActivationRequirements/ProcessActivationRequirement.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Artemis.Core/Plugins/Modules/ActivationRequirements/ProcessActivationRequirement.cs b/src/Artemis.Core/Plugins/Modules/ActivationRequirements/ProcessActivationRequirement.cs index a773160df..e50f6241e 100644 --- a/src/Artemis.Core/Plugins/Modules/ActivationRequirements/ProcessActivationRequirement.cs +++ b/src/Artemis.Core/Plugins/Modules/ActivationRequirements/ProcessActivationRequirement.cs @@ -22,7 +22,7 @@ namespace Artemis.Core.Modules /// The location of where the process must be running from (optional) public ProcessActivationRequirement(string? processName, string? location = null) { - if (string.IsNullOrWhiteSpace(ProcessName) && string.IsNullOrWhiteSpace(Location)) + if (string.IsNullOrWhiteSpace(processName) && string.IsNullOrWhiteSpace(location)) throw new ArgumentNullException($"Atleast one {nameof(processName)} and {nameof(location)} must not be null"); // Let's not make a habit out of this :P