Fixes #27
This commit is contained in:
1 file changed
+2
-2
@@ -47,7 +47,7 @@ public static class SectionProcessor
|
|||||||
}
|
}
|
||||||
|
|
||||||
// In the case, when the user adds a section to the root, handle the insert differently:
|
// 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
|
var rootSection = new Section
|
||||||
{
|
{
|
||||||
@@ -66,7 +66,7 @@ public static class SectionProcessor
|
|||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
e.ToProcessorResult<Section>();
|
return e.ToProcessorResult<Section>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user