diff --git a/app/src/main/java/com/kunfei/bookshelf/bean/BookShelfBean.java b/app/src/main/java/com/kunfei/bookshelf/bean/BookShelfBean.java index 72152d23ac..03186bc2a4 100644 --- a/app/src/main/java/com/kunfei/bookshelf/bean/BookShelfBean.java +++ b/app/src/main/java/com/kunfei/bookshelf/bean/BookShelfBean.java @@ -183,7 +183,7 @@ public ChapterListBean getChapter(int index) { chapterListBean.setDurChapterName("暂无"); chapterListBean.setDurChapterUrl("暂无"); return chapterListBean; - } else if (0 < index && index < getChapterList().size()) { + } else if (0 <= index && index < getChapterList().size()) { return getChapterList().get(index); } else { durChapter = getChapterList().size() - 1;