Some crash fixes

This commit is contained in:
arkon
2020-12-13 10:58:24 -05:00
parent 91fa1ec6b2
commit fd2028557e
8 changed files with 12 additions and 15 deletions
@@ -143,7 +143,7 @@ class LibraryController(
if (preferences.categoryTabs().get()) {
currentTitle = resources?.getString(R.string.label_library)
} else {
adapter?.categories?.get(binding.libraryPager.currentItem)?.let {
adapter?.categories?.getOrNull(binding.libraryPager.currentItem)?.let {
currentTitle = it.name
}
}