A NullReferenceException is thrown when the SelectAll/UnselectAll methods within SelectAllSelector are called and the SelectedItems collection items type is a value type.
For example you could have CheckComboBox with enums as items. When clicking the Select all checkbox a NullReferenceException is thrown.