From b6a7dab2390d3817aff1c685c0502766744408e4 Mon Sep 17 00:00:00 2001 From: Mike Penz Date: Fri, 30 Sep 2022 10:05:52 +0200 Subject: [PATCH] - fix crash if the `itemFilter` `FilterResults` contains `null` values - FIX https://github.com/mikepenz/FastAdapter/issues/1037 --- .../main/java/com/mikepenz/fastadapter/adapters/ItemFilter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastadapter/src/main/java/com/mikepenz/fastadapter/adapters/ItemFilter.kt b/fastadapter/src/main/java/com/mikepenz/fastadapter/adapters/ItemFilter.kt index 77d4186b9..c799f36f6 100644 --- a/fastadapter/src/main/java/com/mikepenz/fastadapter/adapters/ItemFilter.kt +++ b/fastadapter/src/main/java/com/mikepenz/fastadapter/adapters/ItemFilter.kt @@ -101,7 +101,7 @@ open class ItemFilter(private val itemAdapter: ModelA //only fire when we are filtered, not in onReset if (originalItems != null) { - itemFilterListener?.itemsFiltered(constraint, results.values as List) + itemFilterListener?.itemsFiltered(constraint, results.values as? List) } }