diff --git a/app/src/main/java/org/grakovne/lissen/ui/screens/settings/composable/CommonSettingsComposable.kt b/app/src/main/java/org/grakovne/lissen/ui/screens/settings/composable/CommonSettingsComposable.kt index c17e56ae..8894ba5f 100644 --- a/app/src/main/java/org/grakovne/lissen/ui/screens/settings/composable/CommonSettingsComposable.kt +++ b/app/src/main/java/org/grakovne/lissen/ui/screens/settings/composable/CommonSettingsComposable.kt @@ -98,7 +98,7 @@ fun CommonSettingsComposable( } } - if (preferredLibraryExpanded && libraries.isNotEmpty()) { + if (preferredLibraryExpanded && libraries != null && libraries.isNotEmpty()) { CommonSettingsItemComposable( items = libraries.map { CommonSettingsItem(it.id, it.title, it.type.provideIcon()) }, selectedItem = preferredLibrary?.let { CommonSettingsItem(it.id, it.title, it.type.provideIcon()) },