icsharpcode / WpfDesigner

The WPF Designer from SharpDevelop
MIT License
949 stars 251 forks source link

Fixed a NullReferenceException caused by handling a left mouse click on a child node #106

Closed boelew closed 1 year ago

boelew commented 1 year ago

Fixed a NullReferenceException caused by handling a left mouse click on a treenode that was already disconnected and replaced. This happens when an attribute of an element was changed and directly after that a childnode was clicked in the treeview. The node that was changed will be saved first and all childs will be removed and replaced by updated ones. After that, the mouse click on the removed child will still be executed, but that child is no IOutLineNode anymore and that causes the NullReferenceException.

jogibear9988 commented 1 year ago

thx

boelew commented 1 year ago

Thank you for accepting the PR. Can you create a new NuGet package, please?

jogibear9988 commented 1 year ago

done