Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

boelew
Copy link
Contributor

@boelew boelew commented May 23, 2023

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.

…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 jogibear9988 merged commit 0dfcaeb into icsharpcode:master May 23, 2023
@jogibear9988
Copy link
Member

thx

@boelew
Copy link
Contributor Author

boelew commented May 30, 2023

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

@jogibear9988
Copy link
Member

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants