An exception arises after calling Diagram.Undo() for SVG Node Type
Dear Support Team,
I am encountering the error displayed below while attempting to relocate an SVG node named "NodeD" from its parent container, as detailed in the attached VS 2022 solution.
To view the specific error, please visit the following project's page : https://localhost:7204/diagram_svg_shape
Additionally, there is another page, "https://localhost:7204/diagram_basic_shape," which features a basic shape for NodeD. On that page, everything functions correctly, and there are no issues when moving NodeD out of its parent container.
Best regards
Error: System.NullReferenceException: Object reference not set to an instance of an object. |
Attachment: DiagramSVG_91747892.zip
Hi John,
We were able to reproduce the reported issue. We are currently validating the issue and will provide additional information as soon as possible.
Regards,
Ramya
Thank you Ramya
I look forward to your feedback.
.
Hi John,
Reported issue: Exception occurs when dragging an SVG node from container followed by undo action
We have confirmed that the reported issue is a bug and have logged a defect report regarding it. We will fix the issue and include the fix in our upcoming weekly NuGet release, which is expected to be rolled out on "Oct 7, 2025". We appreciate your patience until then.
Meanwhile, you can track the status of the bug at the following link:
Feedback Link: https://www.syncfusion.com/feedback/70105/exception-occurs-when-dragging-an-svg-node-from-container…
Disclaimer: The inclusion of this solution in the weekly release may change due to other factors, including but not limited to QA checks and work reprioritization.
Best Regards,
Jawin
Noted, Thank you for your feedback.
Best Regards
Hi John,
We have fixed the reported issue “An exception arises after calling Diagram.Undo() for SVG Node Type” and included the fix in our weekly patch release(31.1.23). Please update the “Syncfusion.Blazor.Diagram” package to the latest version in your application to resolve the reported issue. Please find the package link below.
https://www.nuget.org/packages/Syncfusion.Blazor.Diagram
Root Cause:
The issue occurs because the SVG node is being added to the container after its properties are updated. When property updates are executed before the node is attached to the container's children, it leads to an exception.
Best Regards,
Ramya
- 5 Replies
- 3 Participants
-
JO John
- Sep 14, 2025 08:47 PM UTC
- Oct 7, 2025 09:29 AM UTC