Open GeertvanHorrik opened 8 months ago
I had the same exception by removing DrawNewLinkBehavior and registering a derived class from it. I solved the issue by changing the GetBehavior function to check if has a derived class if the asked is not found.
I was getting NullReferenceExceptions when updating to the new 3.x version. After some debugging, I noticed the ignoring of potentially nullable value:
https://github.com/Blazor-Diagrams/Blazor.Diagrams/blob/develop/src/Blazor.Diagrams/Components/LinkWidget.razor#L18
Since the behavior can be removed, the null check should still exist?
For now I disabled this call on new diagrams: