From 0ebe59ea2f41a6b78d8bd9d0f175ddcb4f5196ba Mon Sep 17 00:00:00 2001 From: benbierens Date: Wed, 31 May 2023 14:49:06 +0200 Subject: [PATCH] Fixes issue where invalid log-replace statements cause test crash --- Logging/BaseLog.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Logging/BaseLog.cs b/Logging/BaseLog.cs index fb4769b..6a35597 100644 --- a/Logging/BaseLog.cs +++ b/Logging/BaseLog.cs @@ -54,6 +54,7 @@ namespace Logging public void AddStringReplace(string from, string to) { + if (string.IsNullOrWhiteSpace(from)) return; replacements.Add(new BaseLogStringReplacement(from, to)); }