Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.RuntimeException: Error receiving broadcast Intent { act=com.example.r_upgrade.RECEIVER_CANCEL #70

Open
summeryi opened this issue Nov 16, 2022 · 0 comments

Comments

@summeryi
Copy link

Version:0.3.8+2
小米手机,具体操作:打开WIFi 和 流量下载 - > 触发下载 -> 关闭WiFi,自动切换到流量下载 ->打开WIFi -> 关闭流量下载 重复以上操作会几率触发

E/AndroidRuntime(32134): FATAL EXCEPTION: main
E/AndroidRuntime(32134): Process: com.aifitness.gymbot.phone, PID: 32134
E/AndroidRuntime(32134): java.lang.RuntimeException: Error receiving broadcast Intent { act=com.example.r_upgrade.RECEIVER_CANCEL flg=0x10 (has extras) } in com.example.r_upgrade.common.UpgradeService$1@f86b8cb
E/AndroidRuntime(32134): at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1708)
E/AndroidRuntime(32134): at android.app.LoadedApk$ReceiverDispatcher$Args$$ExternalSyntheticLambda0.run(Unknown Source:2)
E/AndroidRuntime(32134): at android.os.Handler.handleCallback(Handler.java:938)
E/AndroidRuntime(32134): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(32134): at android.os.Looper.loopOnce(Looper.java:210)
E/AndroidRuntime(32134): at android.os.Looper.loop(Looper.java:299)
E/AndroidRuntime(32134): at android.app.ActivityThread.main(ActivityThread.java:8227)
E/AndroidRuntime(32134): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(32134): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
E/AndroidRuntime(32134): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045)
E/AndroidRuntime(32134): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.Timer.cancel()' on a null object reference
E/AndroidRuntime(32134): at com.example.r_upgrade.common.UpgradeService$UpgradeRunnable.cancel(UpgradeService.java:235)
E/AndroidRuntime(32134): at com.example.r_upgrade.common.UpgradeService$UpgradeRunnable.access$100(UpgradeService.java:200)
E/AndroidRuntime(32134): at com.example.r_upgrade.common.UpgradeService$1.onReceive(UpgradeService.java:79)
E/AndroidRuntime(32134): at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1694)
E/AndroidRuntime(32134): ... 9 more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant