Dirkster99 / AvalonDock

Our own development branch of the well known WPF document docking library
Microsoft Public License
1.41k stars 321 forks source link

NullReferenceException OnClosed in LayoutAnchorableFloatingWindowControl #437

Closed bbuerger closed 1 year ago

bbuerger commented 1 year ago

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 commented 1 year ago

I created a pull request for this issue