fix(recommends): Handle crash due to null manga case in RecommendsScreenModel (#1495)
This commit is contained in:
parent
4292b22743
commit
36c1c642ca
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ open class RecommendsScreenModel(
|
|||
ioCoroutineScope.launch {
|
||||
val recommendationSources = when (args) {
|
||||
is RecommendsScreen.Args.SingleSourceManga -> {
|
||||
val manga = getManga.await(args.mangaId)!!
|
||||
val manga = getManga.await(args.mangaId) ?: return@launch
|
||||
mutableState.update { it.copy(title = manga.title) }
|
||||
|
||||
RecommendationPagingSource.createSources(
|
||||
|
|
|
|||
Loading…
Reference in a new issue