Skip to content

UI Crash on Download Folder Selection #8441

@js290

Description

@js290

Checklist

  • I am able to reproduce the bug with the latest version.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected version

0.23.0

Steps to reproduce the bug

  1. Pick a video to download
  2. Select parameters and click OK
  3. UI will ask to select download folder
  4. select folder and press Use this folder
  5. UI crashes

Expected behavior

UI should not crash, and selected folder should be used for download

Actual behavior

UI crashes generating exception.

Screenshots/Screen recordings

No response

Logs

Search

Note to Self
You can add notes for yourself in this conversation. If your account has any linked devices, new notes will be synced.

Exception

  • User Action: ui error
  • Request: ACRA report
  • Content Country: US
  • Content Language: en-US
  • App Language: en_US
  • Service: none
  • Version: 0.23.0
  • OS: Linux motorola/racer_retail/racer:11/RPD31.Q4U-39-26-14/dcd58b:user/release-keys 11 - 30
Crash log

java.lang.RuntimeException: Unable to resume activity {org.schabi.newpipe/org.schabi.newpipe.MainActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1597476056, result=-1, data=Intent { dat=content://com.android.externalstorage.documents/tree/primary:Podcasts flg=0xc3 }} to activity {org.schabi.newpipe/org.schabi.newpipe.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toLowerCase()' on a null object reference
	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4506)
	at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4538)
	at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)
	at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2115)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:250)
	at android.app.ActivityThread.main(ActivityThread.java:7755)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1597476056, result=-1, data=Intent { dat=content://com.android.externalstorage.documents/tree/primary:Podcasts flg=0xc3 }} to activity {org.schabi.newpipe/org.schabi.newpipe.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toLowerCase()' on a null object reference
	at android.app.ActivityThread.deliverResults(ActivityThread.java:5080)
	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4493)
	... 11 more
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toLowerCase()' on a null object reference
	at org.schabi.newpipe.streams.io.StoredDirectoryHelper.findFileSAFHelper(StoredDirectoryHelper.java:300)
	at org.schabi.newpipe.streams.io.StoredDirectoryHelper.findFile(StoredDirectoryHelper.java:218)
	at org.schabi.newpipe.download.DownloadDialog.requestDownloadPickFolderResult(DownloadDialog.java:527)
	at org.schabi.newpipe.download.DownloadDialog.requestDownloadPickAudioFolderResult(DownloadDialog.java:463)
	at org.schabi.newpipe.download.DownloadDialog.$r8$lambda$ZkWQqHfoXkKABn6hHnEEj8ilCGQ(Unknown Source:0)
	at org.schabi.newpipe.download.DownloadDialog$$ExternalSyntheticLambda4.onActivityResult(Unknown Source:4)
	at androidx.activity.result.ActivityResultRegistry.doDispatch(ActivityResultRegistry.java:392)
	at androidx.activity.result.ActivityResultRegistry.dispatchResult(ActivityResultRegistry.java:351)
	at androidx.activity.ComponentActivity.onActivityResult(ComponentActivity.java:647)
	at androidx.fragment.app.FragmentActivity.onActivityResult(FragmentActivity.java:164)
	at android.app.Activity.dispatchActivityResult(Activity.java:8393)
	at android.app.ActivityThread.deliverResults(ActivityThread.java:5073)
	... 12 more


Affected Android/Custom ROM version

Android 11

Affected device model

Motorola Edge 2020

Additional information

Workaround is to set the download folder in Settings before doing the download.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue is related to a bugdownloaderIssue is related to the downloaderwaiting for authorIf the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions