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