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

[Bug] Crash fix when click on empty comment #9777

Merged
merged 1 commit into from
Feb 25, 2023

Conversation

pratyaksh1610
Copy link
Contributor

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

Crash fix when click on empty comment.

Before/After Screenshots/Screen Record

After :

20230210111019.mp4

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

@SameenAhnaf SameenAhnaf added bug Issue is related to a bug GUI Issue is related to the graphical user interface labels Feb 12, 2023
Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

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

Thank you! I pushed a commit that further prevents crashes. Do you think the code is ok @pratyaksh1610? I tested it and it seems to work even when I set commentText = null.

Btw, as AudricV said, empty comments exist because of a NewPipeExtractor bug.

@sonarcloud
Copy link

sonarcloud bot commented Feb 14, 2023

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 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@pratyaksh1610
Copy link
Contributor Author

@Stypox LGTM.

@Stypox Stypox merged commit 671dd4a into TeamNewPipe:dev Feb 25, 2023
@pratyaksh1610 pratyaksh1610 deleted the branch-9774 branch February 25, 2023 14:08
@Stypox Stypox mentioned this pull request Mar 1, 2023
3 tasks
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
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Tapping/clicking on an empty comment crashes the app
3 participants