diff --git a/LayoutFunctions/LayoutFunctionCommon/LayoutStrategies.cs b/LayoutFunctions/LayoutFunctionCommon/LayoutStrategies.cs index 9f22ff51..6c3262b8 100644 --- a/LayoutFunctions/LayoutFunctionCommon/LayoutStrategies.cs +++ b/LayoutFunctions/LayoutFunctionCommon/LayoutStrategies.cs @@ -928,6 +928,10 @@ public static void SetParentSpace(Element element, ISpaceBoundary parentSpaceBou id = childSpace.Parent ?? id; spaceBoundary = childSpace.ParentBoundary ?? spaceBoundary; } + if (spaceBoundary == null) + { + return; + } element.AdditionalProperties["Space"] = id; element.AdditionalProperties["Space Boundary"] = spaceBoundary.Vertices;