Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

NullReferenceException in DockContentHandler.SetDockState #9

Closed
roken opened this Issue · 1 comment

1 participant

@roken
Owner

A NullReferenceException is occasionally logged at roughly line 526 in DockContentHandler:

if (Pane != null && DockState == Pane.DockState)
{
if ((Pane != oldPane) ||
(Pane == oldPane && oldDockState != oldPane.DockState)) << logs indicate exception on this line
// Avoid early refresh of hidden AutoHide panes
if ((Pane.DockWindow == null || Pane.DockWindow.Visible || Pane.IsHidden) && !Pane.IsAutoHide)
RefreshDockPane(Pane);
}

It seems this would only happen if oldPane was null, but logically we cannot get into that state (Pane cannot be null, so if oldPane is null, the DockState will not be checked).

@roken
Owner

Closing as not an issue. The problem was that the DockContent was being hidden after it had been disposed. This is not a valid use case.

@roken roken closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.