From 4efca047658761e54cc7574a6e33ed681de3f40a Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 25 Feb 2023 15:32:46 -0500 Subject: [PATCH] Avoid crashing in SourcePreferencesScreen if source can't be loaded --- .../ui/browse/extension/details/SourcePreferencesScreen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/details/SourcePreferencesScreen.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/details/SourcePreferencesScreen.kt index f93fce78d..2478de3d3 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/details/SourcePreferencesScreen.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/details/SourcePreferencesScreen.kt @@ -58,7 +58,7 @@ class SourcePreferencesScreen(val sourceId: Long) : Screen() { Scaffold( topBar = { TopAppBar( - title = { Text(text = Injekt.get().get(sourceId)!!.toString()) }, + title = { Text(text = Injekt.get().getOrStub(sourceId).toString()) }, navigationIcon = { IconButton(onClick = navigator::pop) { Icon(