aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Integrations/Scripts/ScriptService.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2025-02-25 22:02:13 -0600
committerJP Dillingham <jpdillingham@gmail.com>2025-02-25 22:02:13 -0600
commita39936fe06d623967f68dc0f154c487657106dc3 (patch)
tree335b12b57dfe2bc004488186dd2fd9237182e6d6 /src/slskd/Integrations/Scripts/ScriptService.cs
parente22f14e9d12d4bb53d3b802b7bbd5a445e2afbed (diff)
downloadslskd-a39936fe06d623967f68dc0f154c487657106dc3.tar.gz
fix null ref
Diffstat (limited to 'src/slskd/Integrations/Scripts/ScriptService.cs')
-rw-r--r--src/slskd/Integrations/Scripts/ScriptService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Integrations/Scripts/ScriptService.cs b/src/slskd/Integrations/Scripts/ScriptService.cs
index 0d789a91..d4e90d7e 100644
--- a/src/slskd/Integrations/Scripts/ScriptService.cs
+++ b/src/slskd/Integrations/Scripts/ScriptService.cs
@@ -159,7 +159,7 @@ public class ScriptService
};
}
- Log.Debug("Running script '{Script}': \"{Executable}\" {Args} (id: {ProcessId})", script.Key, executable, run.Args ?? string.Join(' ', run.ArgsList), processId);
+ Log.Debug("Running script '{Script}': \"{Executable}\" {Args} (id: {ProcessId})", script.Key, executable, run.Args ?? string.Join(' ', run.ArgsList ?? []), processId);
var sw = Stopwatch.StartNew();
process.StartInfo.EnvironmentVariables["SLSKD_SCRIPT_DATA"] = data.ToJson();