Skip to content

Commit

Permalink
fix null exception in SetParentSpace
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheumann committed Feb 18, 2024
1 parent f12e619 commit cf0bd11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions LayoutFunctions/LayoutFunctionCommon/LayoutStrategies.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit cf0bd11

Please sign in to comment.