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 image empty tag parsing on Android #123

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

skrugly
Copy link
Contributor

@skrugly skrugly commented Oct 29, 2023

Hey, first of all thanks for the great library.

I've come across parsing rss feed from https://hackernoon.com/feed and noticed that they have an empty image tag followed by media:thumbnail with the actual image.
The Android XML parser is crashing with NPE at that line trying to trim an null string

val text = xmlPullParser.text.trim()

I this PR I'am proposing an easy fix for that bug.

@prof18
Copy link
Owner

prof18 commented Oct 30, 2023

Uh, nicely spotted! Thanks!

@prof18 prof18 merged commit 0e00e24 into prof18:master Oct 30, 2023
1 check passed
@skrugly skrugly deleted the image-empty-tag-fix branch October 30, 2023 10:52
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.

None yet

2 participants