Fix force close when no more mangas found

This commit is contained in:
inorichi
2015-10-12 23:53:27 +02:00
parent 0278531e51
commit 0febdfb715
2 changed files with 31 additions and 8 deletions

View File

@@ -113,6 +113,10 @@ public class Batoto extends Source {
}
private List<Manga> parseMangasFromHtml(String unparsedHtml) {
if (unparsedHtml.contains("No (more) comics found!")) {
return new ArrayList<>();
}
Document parsedDocument = Jsoup.parse(unparsedHtml);
List<Manga> updatedMangaList = new ArrayList<>();