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

批量删除下载任务时候有时候空指针 #66

Open
mgxlili opened this issue Oct 26, 2023 · 0 comments
Open

批量删除下载任务时候有时候空指针 #66

mgxlili opened this issue Oct 26, 2023 · 0 comments

Comments

@mgxlili
Copy link

mgxlili commented Oct 26, 2023

异常信息:
Thread Name: 'Video_download_state_thread'
Back traces starts.
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.jeffmony.downloader.listener.DownloadListener.onDownloadDefault(com.jeffmony.downloader.model.VideoTaskItem)' on a null object reference
at com.jeffmony.downloader.VideoDownloadManager.handleOnDownloadDefault(SourceFile:1)
at com.jeffmony.downloader.VideoDownloadManager.access$400(SourceFile:1)
at com.jeffmony.downloader.VideoDownloadManager$VideoDownloadHandler.dispatchDownloadMessage(SourceFile:8)
at com.jeffmony.downloader.VideoDownloadManager$VideoDownloadHandler.handleMessage(SourceFile:5)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.os.HandlerThread.run(HandlerThread.java:67)
Back traces ends.

是不是需要在 deleteVideoTask 方法中进行 null判断。类似 pauseDownloadTask处理一样。

@mgxlili mgxlili changed the title 删除下载任务时候有时候空指针 批量删除下载任务时候有时候空指针 Oct 26, 2023
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