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 crash when sharing a playlist which is loading #7662

Merged
merged 1 commit into from
Jan 16, 2022

Conversation

AudricV
Copy link
Member

@AudricV AudricV commented Jan 15, 2022

What is it?

  • Bugfix (user facing)

Description of the changes in your PR

This PR prevents a NullPointerException by adding a null check for currentInfo when trying to share a playlist which is loading. Instead of crashing, the app does now nothing when pressing the Share button on a playlist which is loading, like on channels.

Fixes the following issue(s)

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

Prevent a NullPointerException by adding a null check for currentInfo when sharing a playlist.
@AudricV AudricV added bug Issue is related to a bug GUI Issue is related to the graphical user interface labels Jan 15, 2022
@AudricV
Copy link
Member Author

AudricV commented Jan 15, 2022

@RealTheSunCat Can you confirm the issue is fixed with the APK of this PR? Thank you in advance.

Copy link
Member

@TobiGr TobiGr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sonarcloud
Copy link

sonarcloud bot commented Jan 15, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Member

@litetex litetex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@litetex litetex merged commit 15e3b63 into TeamNewPipe:dev Jan 16, 2022
@AudricV AudricV deleted the fix-npe-share-button-playlists branch January 17, 2022 18:23
This was referenced Feb 11, 2022
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 GUI Issue is related to the graphical user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when sharing playlist which hasn't yet loaded
3 participants