Skip to content

Commit

Permalink
Merge pull request #328 from bbuerger/patch-1
Browse files Browse the repository at this point in the history
NullCheck for currentActiveContent
  • Loading branch information
Dirkster99 committed Feb 12, 2022
2 parents 01ebaca + 84a52b8 commit 2cb7c83
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/Components/AvalonDock/Controls/DropTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ public void Drop(LayoutFloatingWindow floatingWindow)
var fwAsDocument = floatingWindow as LayoutDocumentFloatingWindow;
this.Drop(fwAsDocument);
}

if (currentActiveContent == null)
return;
Dispatcher.BeginInvoke(new Action(() =>
{
currentActiveContent.IsSelected = false;
Expand Down Expand Up @@ -154,4 +155,4 @@ public void DragLeave()

#endregion Public Methods
}
}
}

0 comments on commit 2cb7c83

Please sign in to comment.