Long pressing a malformed link crashes the app - eviltoast

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

    • Quetzalcutlass@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      1
      ·
      10 months ago

      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.

    • Quetzalcutlass@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      10 months ago

      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.

    • Otter@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      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