DiscreteValuesFilter - guard against null desired-items
This commit is contained in:
1 parent
7e54eea62f
commit
701e883aea
1 file changed
+1
-1
@@ -110,7 +110,7 @@ namespace mbts.spark.filters {
|
||||
selected_items.CollectionChanged += on_selected_items_CollectionChanged;
|
||||
Action<Action<IObservable<IEnumerable<TValue>>>> ah = cb => _on_state_loaded += cb, rh = cb => _on_state_loaded -= cb;
|
||||
_resources.Add(Observable.FromEvent(ah, rh).SelectMany(src => src).ObserveOnDispatcher().Subscribe(dsi => {
|
||||
if (!_override_desired_selection) {
|
||||
if (!_override_desired_selection && dsi != null) {
|
||||
var copy = new HashSet<TValue>(_selected_items_set, equality_comparer);
|
||||
_selected_items_set = new HashSet<TValue>(dsi, equality_comparer);
|
||||
using (selected_items.SuspendHandler(on_selected_items_CollectionChanged)) {
|
||||
|
||||
Reference in new issue
Block a user