From 5e67cee9fe313408a328a64761a385f6819cd897 Mon Sep 17 00:00:00 2001 From: Rene Evertz Date: Thu, 17 Jul 2025 12:39:23 +0200 Subject: [PATCH] hotfix, null str --- BeWo/DebugConfig.cs | 2 +- Dakota/Logic/DakotaKTDReader.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/BeWo/DebugConfig.cs b/BeWo/DebugConfig.cs index 4a6f9dd15..e49a73fee 100644 --- a/BeWo/DebugConfig.cs +++ b/BeWo/DebugConfig.cs @@ -131,7 +131,7 @@ namespace BeWo new DebugConfig() { DebugConfigMode = DebugConfigMode.FeatureDakota, - AutoLogin = true, + AutoLogin = false, SelectView = UIContext.Organisation, SelectIndex = 8, DefaultLoginUsername = "m1", diff --git a/Dakota/Logic/DakotaKTDReader.cs b/Dakota/Logic/DakotaKTDReader.cs index 391ad6f32..055926965 100644 --- a/Dakota/Logic/DakotaKTDReader.cs +++ b/Dakota/Logic/DakotaKTDReader.cs @@ -180,6 +180,8 @@ namespace Dakota.Logic private string clear(string str) { + if (str is null) + return null; string asciiOnly = new string(str.Where(c => c <= 127).ToArray()); return asciiOnly; }