MewX / light-novel-library_Wenku8_Android

[CASUALLY MAINTAINED] 轻小说文库 (Wenku8.com) 安卓版第三方公益App,始于2014年的Material Design风格、无广告、不盈利、Google Play上安装包最小的轻小说阅读器(light novel reader)。目前除了网站的API以外,还添加了我自己架的Cloudflare Worker 中继节点用来突破网站API的限制 wenku8-relay.mewx.org.
https://wenku8.mewx.org
GNU General Public License v2.0
1.81k stars 298 forks source link

启动app后操作过快大概率导致crash #76

Open xgmo9 opened 3 years ago

xgmo9 commented 3 years ago

复现步骤: 在app启动后如果不稍微等待直接点击侧栏的收藏的话有极大的概率crash 设备: Android 11 LineageOS 18.1 lenovo k10 log: 03-15 12:22:52.608 4208 4208 E AndroidRuntime: FATAL EXCEPTION: main 03-15 12:22:52.608 4208 4208 E AndroidRuntime: Process: org.mewx.wenku8, PID: 4208 03-15 12:22:52.608 4208 4208 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setVisibility(int)' on a null object reference 03-15 12:22:52.608 4208 4208 E AndroidRuntime: at hr$b.b(Unknown Source:176) 03-15 12:22:52.608 4208 4208 E AndroidRuntime: at hr$b.onPostExecute(Unknown Source:2) 03-15 12:22:52.608 4208 4208 E AndroidRuntime: at android.os.AsyncTask.finish(AsyncTask.java:771) 03-15 12:22:52.608 4208 4208 E AndroidRuntime: at android.os.AsyncTask.access$900(AsyncTask.java:199) 03-15 12:22:52.608 4208 4208 E AndroidRuntime: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788) 03-15 12:22:52.608 4208 4208 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106) 03-15 12:22:52.608 4208 4208 E AndroidRuntime: at android.os.Looper.loop(Looper.java:223) 03-15 12:22:52.608 4208 4208 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7660) 03-15 12:22:52.608 4208 4208 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 03-15 12:22:52.608 4208 4208 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) 03-15 12:22:52.608 4208 4208 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

MewX commented 3 years ago

谢谢反馈,是历史遗留问题

MewX commented 1 year ago

希望v1.19可以修复这个问题(明天应该会推送到beta channel)