Fix crash when opening library sheet with empty category list (#7822)
This commit is contained in:
parent
6d6c38ecaf
commit
58e6479438
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ class LibraryController(
|
|||
}
|
||||
|
||||
fun showSettingsSheet() {
|
||||
presenter.categories[presenter.activeCategory].let { category ->
|
||||
presenter.categories.getOrNull(presenter.activeCategory)?.let { category ->
|
||||
settingsSheet?.show(category)
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue