Browse Source

Fixes NullReferenceException in #1354

This issues a fix for the NullReferenceException that occurs in v3.4 of AvalonDock when the _draggingItem is null on MouseEnter (reference issue #1354).
pull/1393/head
Jacob Colyer 8 years ago
committed by GitHub
parent
commit
1b0114dcb3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/LayoutAnchorableTabItem.cs

3
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/LayoutAnchorableTabItem.cs

@ -181,7 +181,8 @@ namespace Xceed.Wpf.AvalonDock.Controls
{
base.OnMouseEnter( e );
if( _draggingItem != this &&
if( _draggingItem != null &&
_draggingItem != this &&
e.LeftButton == MouseButtonState.Pressed )
{
var model = Model;

Loading…
Cancel
Save