Skip to content

Commit

Permalink
avoid null reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Miller committed Jan 25, 2024
1 parent 0a05b15 commit e930e6b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Maui.DataGrid/DataGrid.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,10 @@ private void SortAndPaginate(SortData? sortData = null)
break;
}

self._collectionView.SelectionMode = n;
if (self._collectionView != null)
{
self._collectionView.SelectionMode = n;
}
});

/// <summary>
Expand Down

0 comments on commit e930e6b

Please sign in to comment.