aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Common/Configuration/CommandLineConfigurationSource.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-01-23 20:22:13 -0600
committerJP Dillingham <jpdillingham@gmail.com>2021-01-23 20:22:13 -0600
commit10b7ca09e642c6ee1ffcfa3e5fe9198afa13c1d7 (patch)
tree547094afc36bdf1835dd182c7fe0e8ee7c9c2b0e /src/slskd/Common/Configuration/CommandLineConfigurationSource.cs
parent81ed61f9f6e76db77a709a6fa024b1ea95df38b3 (diff)
downloadslskd-10b7ca09e642c6ee1ffcfa3e5fe9198afa13c1d7.tar.gz
coalesce nulls
Diffstat (limited to 'src/slskd/Common/Configuration/CommandLineConfigurationSource.cs')
-rw-r--r--src/slskd/Common/Configuration/CommandLineConfigurationSource.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Common/Configuration/CommandLineConfigurationSource.cs b/src/slskd/Common/Configuration/CommandLineConfigurationSource.cs
index a6b46496..c65e316b 100644
--- a/src/slskd/Common/Configuration/CommandLineConfigurationSource.cs
+++ b/src/slskd/Common/Configuration/CommandLineConfigurationSource.cs
@@ -109,7 +109,7 @@
if (NormalizeKey)
{
- key = key.Replace("-", string.Empty).Replace("_", string.Empty).ToLowerInvariant();
+ key = key?.Replace("-", string.Empty).Replace("_", string.Empty).ToLowerInvariant();
}
if (string.IsNullOrEmpty(key))