Fixes #27
This commit is contained in:
parent
bbefeb97a8
commit
a8e231bb1b
@ -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>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user