Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbWatershed committed Sep 9, 2023
1 parent aafdabe commit 2f0a42a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> imgs = HdPornComicsParser.parseImages(pages);
content.setImageFiles(ParseHelper.urlsToImageFiles(imgs, coverUrl, StatusContent.SAVED));
content.setQtyPages(imgs.size() - 1); // Don't count the cover
Expand Down

0 comments on commit 2f0a42a

Please sign in to comment.