Long pressing a malformed link crashes the app

Long-pressing the link in [https://lemmy.ml/comment/7302466](this comment) will cause Boost to crash.

The link markdown is wrong, with the URL in the text tag and the destination tag empty, but this shouldn't crash the app.

Alternate test link in case the commenter fixes it: https://www.example.com

11 points · 5 comments · view on lemmy.world

5 Comments

rmayayo@lemmy.world · 5 pts · 2y

Thanks for the link, I'll fix that

bert_macklin_fbi@lemmy.world · 1 pts · 2y (2 replies)

The first did not crash the app for me but the second one did.

otter@lemmy.ca · 1 pts · 2y

I think it's the link in that other comment, not the link to the comment itself

Both that link and the second sample one crash the app for me

Quetzalcutlass@lemmy.world · 1 pts · 2y

The first is a link to someone else's comment that contains the broken link. Does the link there cause a crash? It still does on my end.

dbx12@programming.dev · 1 pts · 2y (1 reply)
[ removed ]
Quetzalcutlass@lemmy.world · 4 pts · 2y

Yes, but Boost should show an error toast when it encounters problems like this instead of crashing. Tapping the broken link already does show a toast.