amwx / FluentAvalonia

Control library focused on fluent design and bringing more WinUI controls into Avalonia
MIT License
1.05k stars 97 forks source link

NullReferenceException when setting filter of CollectionViewSource #624

Open zmollohan opened 5 days ago

zmollohan commented 5 days ago

Describe the bug Setting the filter on a CollectionViewSource raises a NullReferenceException

ObservableCollection<string> test = new()
{
    "Test 1", "Test 2", "Test 3"
};

CollectionViewSource filteredTest = new()
{
    Source = test
};

filteredTest.Filter = null;

Desktop/Platform

Additional context If I don't set a filter, the ListBox that filteredTest.View is bound to, does populate with the items.