gedoor / MyBookshelf

阅读是一款可以自定义来源阅读网络内容的工具,为广大网络文学爱好者提供一种方便、快捷舒适的试读体验。
https://gedoor.github.io
GNU General Public License v3.0
7.57k stars 1.81k forks source link

总是报这个空指针,手机上会crash #579

Open weitianxiang19910000 opened 3 years ago

weitianxiang19910000 commented 3 years ago

java.lang.NullPointerException: Attempt to invoke virtual method 'int com.kunfei.bookshelf.widget.page.TxtChapter.getPageSize()' on a null object reference at com.kunfei.bookshelf.widget.page.PageLoader.pagingEnd(PageLoader.java:755) at com.kunfei.bookshelf.widget.page.PageView.changePage(PageView.java:651) at com.kunfei.bookshelf.widget.page.animation.HorizonPageAnim.abortAnim(HorizonPageAnim.java:164) at com.kunfei.bookshelf.widget.page.animation.HorizonPageAnim.onTouchEvent(HorizonPageAnim.java:54) at com.kunfei.bookshelf.widget.page.PageView.onTouchEvent(PageView.java:508) at android.view.View.dispatchTouchEvent(View.java:11788) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2974) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2604) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2974) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2604) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2974) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2604) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2974) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2604) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2974) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2604) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2974) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2604) at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:549) at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1953) at android.app.Activity.dispatchTouchEvent(Activity.java:3548) at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:69) at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:69) at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:502) at android.view.View.dispatchPointerEvent(View.java:12027) at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5278) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5067) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4581) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4634) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4600) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4727) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4608) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4784) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4581) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4634) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4600) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4608) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4581) at android.view.ViewRootImpl.deliverInpu