Browse Source

Fix NRE in SortableGridViewColumn.

pull/1420/head
Siegfried Pammer 7 years ago
parent
commit
38247fed2d
  1. 2
      ILSpy/Controls/SortableGridViewColumn.cs

2
ILSpy/Controls/SortableGridViewColumn.cs

@ -170,6 +170,8 @@ namespace ICSharpCode.ILSpy.Controls @@ -170,6 +170,8 @@ namespace ICSharpCode.ILSpy.Controls
SortableGridViewColumn column = GetCurrentSortColumn(grid);
ICollectionView dataView = CollectionViewSource.GetDefaultView(grid.ItemsSource);
if (dataView == null) return;
if (column != null && GetSortMode(grid) == ListViewSortMode.Automatic && currentDirection != ColumnSortDirection.None) {
string sortBy = column.SortBy;
if (sortBy == null) {

Loading…
Cancel
Save