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; }