Merge pull request #618 from Cheerpipe/development

Fix null object exception
This commit is contained in:
Robert Beekman authored and GitHub committed 2021-06-10 18:59:44 +02:00
commit f19781bff1
1 file changed
+1 -1
@@ -22,7 +22,7 @@ namespace Artemis.Core.Modules
/// <param name="location">The location of where the process must be running from (optional)</param>
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