This commit is contained in:
Thorsten Sommer 2022-07-17 13:31:36 +02:00
parent bbefeb97a8
commit a8e231bb1b
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -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<Section>();
return e.ToProcessorResult<Section>();
}
}