Skip to content

Opening a link of a note can throw an unhandled error #609

Closed

Description

@maelchiotti

SystemUtils.openLink calls launchUrl(uri) without awaiting it and without catching its errors. When the link can't be opened (no app can handle the scheme, or the platform throws a PlatformException), the error is unhandled and nothing is logged.

It should await launchUrl, catch the exceptions and log the failure, without logging the URL, which can contain private information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions