diff --git a/app/src/main/java/com/hippo/ehviewer/client/parser/GalleryListParser.java b/app/src/main/java/com/hippo/ehviewer/client/parser/GalleryListParser.java index 0e8ac71ed..0a4e5d12c 100644 --- a/app/src/main/java/com/hippo/ehviewer/client/parser/GalleryListParser.java +++ b/app/src/main/java/com/hippo/ehviewer/client/parser/GalleryListParser.java @@ -345,6 +345,9 @@ public class GalleryListParser { list.add(gi); } } + if (list.isEmpty()) { + throw new ParseException("No gallery", body); + } result.galleryInfoList = list; } catch (Throwable e) { ExceptionUtils.throwIfFatal(e);