mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Fix null object exception
This commit is contained in:
parent
fe933f60e8
commit
221080db6b
@ -22,7 +22,7 @@ namespace Artemis.Core.Modules
|
|||||||
/// <param name="location">The location of where the process must be running from (optional)</param>
|
/// <param name="location">The location of where the process must be running from (optional)</param>
|
||||||
public ProcessActivationRequirement(string? processName, string? location = null)
|
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");
|
throw new ArgumentNullException($"Atleast one {nameof(processName)} and {nameof(location)} must not be null");
|
||||||
|
|
||||||
// Let's not make a habit out of this :P
|
// Let's not make a habit out of this :P
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user