From 2f0a42aeb1e94f8ca09d86853bb765ec5a7feb3d Mon Sep 17 00:00:00 2001 From: Robb <35880555+robbwatershed@users.noreply.github.com> Date: Sat, 9 Sep 2023 15:13:10 +0200 Subject: [PATCH] Fix crash --- .../me/devsaki/hentoid/parsers/content/HdPornComicsContent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/me/devsaki/hentoid/parsers/content/HdPornComicsContent.java b/app/src/main/java/me/devsaki/hentoid/parsers/content/HdPornComicsContent.java index 76eacb24f..aee8bbc4e 100644 --- a/app/src/main/java/me/devsaki/hentoid/parsers/content/HdPornComicsContent.java +++ b/app/src/main/java/me/devsaki/hentoid/parsers/content/HdPornComicsContent.java @@ -62,7 +62,7 @@ public Content update(@NonNull final Content content, @Nonnull String url, boole ParseHelper.parseAttributes(attributes, AttributeType.TAG, tags, false, Site.HDPORNCOMICS); content.putAttributes(attributes); - if (updateImages) { + if (updateImages && pages != null) { List imgs = HdPornComicsParser.parseImages(pages); content.setImageFiles(ParseHelper.urlsToImageFiles(imgs, coverUrl, StatusContent.SAVED)); content.setQtyPages(imgs.size() - 1); // Don't count the cover