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

MaterialCheckboxGroup NullReferenceException #417

Open
zillemarco opened this issue Feb 13, 2021 · 0 comments
Open

MaterialCheckboxGroup NullReferenceException #417

zillemarco opened this issue Feb 13, 2021 · 0 comments

Comments

@zillemarco
Copy link

🐛 Bug Report

MaterialCheckboxGroup throws a NullReferenceException when both SelectedIndices and Choices and bound to the respective binding properties and Choices is and empty list.

This is due to

case nameof(Choices) when Choices != null && Choices.Any():

and

the foreach at MaterialCheckboxGroup.xaml.cs#L130 assumes Models to be valid, but due to BaseMaterialSelectionControlGroup.cs#L145 it's not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant