Protect against a random library crash

This commit is contained in:
Jobobby04 2021-06-28 01:22:18 -04:00
parent a132435967
commit 99042352fb

View File

@ -301,7 +301,7 @@ class LibraryController(
fun showSettingsSheet() {
if (adapter?.categories?.isNotEmpty() == true) {
adapter?.categories?.get(binding.libraryPager.currentItem)?.let { category ->
adapter?.categories?.getOrNull(binding.libraryPager.currentItem)?.let { category ->
settingsSheet?.show(category)
}
} else {