Dirkster99 / AvalonDock

Our own development branch of the well known WPF document docking library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NullReferenceException OnClosed in LayoutAnchorableFloatingWindowControl

bbuerger opened this issue · comments

commented

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)

commented

I created a pull request for this issue