java.lang.RuntimeException: Unable to resume activity {org.schabi.newpipe/org.schabi.newpipe.MainActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1877435828, result=-1, data=Intent { dat=content://com.android.providers.downloads.documents/... flg=0x43 }} to activity {org.schabi.newpipe/org.schabi.newpipe.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'us.shandian.giga.service.MissionState us.shandian.giga.service.DownloadManager.checkForExistingMission(org.schabi.newpipe.streams.io.StoredFileHelper)' on a null object reference
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:5938)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:6011)
at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:57)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:60)
at android.app.servertransaction.TransactionExecutor.executeLifecycleItem(TransactionExecutor.java:225)
at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:107)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:81)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2899)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loopOnce(Looper.java:257)
at android.os.Looper.loop(Looper.java:342)
at android.app.ActivityThread.main(ActivityThread.java:9638)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:619)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)
Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1877435828, result=-1, data=Intent { dat=content://com.android.providers.downloads.documents/... flg=0x43 }} to activity {org.schabi.newpipe/org.schabi.newpipe.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'us.shandian.giga.service.MissionState us.shandian.giga.service.DownloadManager.checkForExistingMission(org.schabi.newpipe.streams.io.StoredFileHelper)' on a null object reference
at android.app.ActivityThread.deliverResults(ActivityThread.java:6582)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:5905)
... 14 more
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'us.shandian.giga.service.MissionState us.shandian.giga.service.DownloadManager.checkForExistingMission(org.schabi.newpipe.streams.io.StoredFileHelper)' on a null object reference
at org.schabi.newpipe.download.DownloadDialog.checkSelectedDownload(DownloadDialog.java:912)
at org.schabi.newpipe.download.DownloadDialog.requestDownloadSaveAsResult(DownloadDialog.java:517)
at org.schabi.newpipe.download.DownloadDialog.$r8$lambda$MGriMWeMMNZbERibXDRI1sveus8(DownloadDialog.java:0)
at org.schabi.newpipe.download.DownloadDialog$$ExternalSyntheticLambda11.onActivityResult(R8$$SyntheticClass:0)
at androidx.activity.result.ActivityResultRegistry.doDispatch(ActivityResultRegistry.java:414)
at androidx.activity.result.ActivityResultRegistry.dispatchResult(ActivityResultRegistry.java:371)
at androidx.activity.ComponentActivity.onActivityResult(ComponentActivity.java:845)
at androidx.fragment.app.FragmentActivity.onActivityResult(FragmentActivity.java:151)
at android.app.Activity.onActivityResult(Activity.java:7737)
at android.app.Activity.internalDispatchActivityResult(Activity.java:9784)
at android.app.Activity.dispatchActivityResult(Activity.java:9761)
at android.app.ActivityThread.deliverResults(ActivityThread.java:6571)
... 15 more
Checklist
Affected version
Can be seen
Steps to reproduce the bug
Go to download
Expected behavior
To download the video and the video to go in my files
Actual behavior
It tells me this error: ## Exception
Crash log
Screenshots/Screen recordings
No response
Logs
Exception
Crash log
Affected Android/Custom ROM version
No response
Affected device model
No response
Additional information
No response