Closed jchown closed 8 months ago
The reason for this seems to be that the "OnLinkRemoved" method expects the target of the link to be PortModel, although it is not guaranteed to be one:
if (link.Target != null) (link.Target.Model as PortModel)!.Parent.Refresh();
The "OnLinkRemoved"-Method is called when:
The current code throws a null pointer exception, if you draw a link and release it on anything that is not a port.
The demo page on https://blazor-diagrams.zhaytam.com/ throws an NRE when you drag an edge from a pin.