Last Updated: 07 Jun 2022 08:05 by ADMIN
Release LIB 2022.2.613 (13 June 2022)
Martin Ivanov
Created on: 01 Jun 2022 09:04
Category: Diagram
Type: Bug Report
Diagram: NullReferenceException thrown when saving diagram that contains a shape with GeometryGroup

NullReferenceException is thrown when trying to save RadDiagram instance that contains a RadDiagramShape with its Geometry assigned to a GeometryGroup value. 

To work this around, you can flatten the GeometryGroup before setting the shape's Geometry property. This is done by calling the GetFlattenedPathGeometry() method of the GeometryGroup.

shape.Geometry = group.GetFlattenedPathGeometry();