Skip to content

Commit

Permalink
- fix crash if the itemFilter FilterResults contains null values
Browse files Browse the repository at this point in the history
  - FIX #1037
  • Loading branch information
mikepenz committed Sep 30, 2022
1 parent c65ee4e commit b6a7dab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ open class ItemFilter<Model, Item : GenericItem>(private val itemAdapter: ModelA

//only fire when we are filtered, not in onReset
if (originalItems != null) {
itemFilterListener?.itemsFiltered(constraint, results.values as List<Item>)
itemFilterListener?.itemsFiltered(constraint, results.values as? List<Item>)
}
}

Expand Down

0 comments on commit b6a7dab

Please sign in to comment.