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

Fix NullPointerException when checking if storage exists #6778

Merged
merged 2 commits into from
Jul 28, 2021

Conversation

Stypox
Copy link
Member

@Stypox Stypox commented Jul 27, 2021

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

I just added yet another null check ;-)
I removed the || storage.isInvalid() check in DownloadMission since that's already taken care of by || !storage.existsAsFile()

Fixes the following issue(s)

Fixes #6687 (comment)

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.

Due diligence

@AudricV AudricV added bug Issue is related to a bug downloader Issue is related to the downloader labels Jul 27, 2021
@TobiGr TobiGr merged commit cd713db into TeamNewPipe:dev Jul 28, 2021
This was referenced Aug 4, 2021
@Stypox Stypox deleted the invalid-storage-npe branch August 4, 2022 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug downloader Issue is related to the downloader
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crashing when downloading because of SAF
4 participants