From e8b801684fd45405bec20f44e1b31eebff3e5bf4 Mon Sep 17 00:00:00 2001 From: Koitharu Date: Thu, 29 Sep 2022 14:25:41 +0300 Subject: [PATCH] [MangaDex] Fix error on empty description --- .../kotlin/org/koitharu/kotatsu/parsers/site/MangaDexParser.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/MangaDexParser.kt b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/MangaDexParser.kt index db06ace9..b436111b 100644 --- a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/MangaDexParser.kt +++ b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/MangaDexParser.kt @@ -139,7 +139,7 @@ internal class MangaDexParser(override val context: MangaLoaderContext) : MangaP Locale.ROOT, ) manga.copy( - description = mangaAttrs.getJSONObject("description").selectByLocale() + description = mangaAttrs.optJSONObject("description")?.selectByLocale() ?: manga.description, chapters = feed.mapChapters { _, jo -> val id = jo.getString("id")