diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt index 7154f9e6..bff4055a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt @@ -147,7 +147,8 @@ class ItemsFragment : Fragment(), ItemsAdapter.ItemOperationsListener, Breadcrum } items_fastscroller.allowBubbleDisplay = context.config.showInfoBubble items_fastscroller.setViews(items_list, items_swipe_refresh) { - items_fastscroller.updateBubbleText(storedItems[it].getBubbleText()) + val item = storedItems.getOrNull(it) + items_fastscroller.updateBubbleText(item?.getBubbleText() ?: "") } } else { (currAdapter as ItemsAdapter).updateItems(storedItems)