Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullReferenceException when setting filter of CollectionViewSource #624

Closed
zmollohan opened this issue Nov 20, 2024 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@zmollohan
Copy link

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 **

  • OS: Windows 10
  • FluentAvalonia Version 2.1.0
  • Avalonia Version 11.2.1

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

@zmollohan zmollohan added the bug Something isn't working label Nov 20, 2024
@amwx amwx closed this as completed in 89448b6 Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant