Protect against a random library crash
This commit is contained in:
parent
a132435967
commit
99042352fb
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue