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

NullReferenceException OnClosed in LayoutAnchorableFloatingWindowControl #437

Closed
bbuerger opened this issue Apr 27, 2023 · 1 comment
Closed

Comments

@bbuerger
Copy link
Contributor

The following exception occured on a customer machine:

LayoutAnchorableFloatingWindowControl OnClosed: First Chance Exception: System.NullReferenceException:
Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

bei AvalonDock.Controls.LayoutAnchorableFloatingWindowControl.OnClosed(EventArgs e)
bei System.Windows.Window.WmDestroy()

I don't have enough information which variable could be null perhaps _model or Manager?
I can create a pull request with nullchecks or null-conditional member access but I don't like these in my own code if I'm sure that these can never be null.
So I though I ask first which variable could be null and which style you do prefer (null Check or null-conditional member access)

@bbuerger
Copy link
Contributor Author

I created a pull request for this issue

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

No branches or pull requests

1 participant