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

Make getCommentText @Nonnull #1162

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

Stypox
Copy link
Member

@Stypox Stypox commented Mar 27, 2024

Fixes TeamNewPipe/NewPipe#10888 by making sure the comment Description is always non-null. This PR adds @Nonnull to all related methods/fields, but most importantly makes sure the CommentsInfoItem's commentText field is initialized to a non-null value. Therefore even if the CommentsInfoItemsCollector does not call setCommentText because the extractor threw an error while extracting the text, commentText will always be non-null.

@TobiGr TobiGr merged commit ad71864 into TeamNewPipe:dev Mar 27, 2024
4 checks passed
@Stypox Stypox deleted the fix-comment-description-npe branch March 27, 2024 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[nightly] crashes when trying to load the comments
2 participants