From a8e231bb1b56687b19bc42527a97377f29c872da Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 17 Jul 2022 13:31:36 +0200 Subject: [PATCH] Fixes #27 --- I18N Commander/Processor/SectionProcessor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/I18N Commander/Processor/SectionProcessor.cs b/I18N Commander/Processor/SectionProcessor.cs index a1a7844..7dd6799 100644 --- a/I18N Commander/Processor/SectionProcessor.cs +++ b/I18N Commander/Processor/SectionProcessor.cs @@ -47,7 +47,7 @@ public static class SectionProcessor } // In the case, when the user adds a section to the root, handle the insert differently: - if (string.IsNullOrEmpty(parentKey)) + if (string.IsNullOrWhiteSpace(parentKey)) { var rootSection = new Section { @@ -66,7 +66,7 @@ public static class SectionProcessor } catch (Exception e) { - e.ToProcessorResult
(); + return e.ToProcessorResult
(); } }