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

解决用户还没有点击更新,就去动mDownloadBinder,导致的空指针bug #68

Conversation

Jiiiiiin
Copy link
Contributor

@Jiiiiiin Jiiiiiin commented Apr 7, 2018

昨天修出了一个bug,不好意思,麻烦再帮忙合并一下:
解决下面的空指针,昨天太晚了,只盯着那个问题测试了。

04-07 16:16:30.942 28268-28268/com.csii.mobilebank E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.csii.mobilebank, PID: 28268
    java.lang.NullPointerException: Attempt to invoke virtual method 'void com.vector.update_app.service.DownloadService$DownloadBinder.stop(java.lang.String)' on a null object reference
        at com.vector.update_app.UpdateDialogFragment.cancelDownloadService(UpdateDialogFragment.java:314)
        at com.vector.update_app.UpdateDialogFragment.onClick(UpdateDialogFragment.java:301)
        at android.view.View.performClick(View.java:6291)
        at android.view.View$PerformClick.run(View.java:24931)
        at android.os.Handler.handleCallback(Handler.java:808)
        at android.os.Handler.dispatchMessage(Handler.java:101)
        at android.os.Looper.loop(Looper.java:166)
        at android.app.ActivityThread.main(ActivityThread.java:7406)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:926)

@WVector WVector merged commit 4d08b8e into WVector:master Apr 7, 2018
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

Successfully merging this pull request may close these issues.

2 participants