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

Prevent crash when searching for rooms #5893

Merged
merged 3 commits into from
Mar 22, 2022
Merged

Conversation

Anderas
Copy link
Contributor

@Anderas Anderas commented Mar 22, 2022

Fixes #5883

Apparently a deeplink can be opened with only a fragment and no url, as seen for example here. This means that the UniversalLinkParameters must be able to accept nil urls by design. Otherwise the obj-c code may inject nil value (compiler does not prevent obj-c passing nil value to non-nil swift code) and the app crashes.

@Anderas Anderas requested review from a team and pixlwave and removed request for a team March 22, 2022 12:54
@github-actions
Copy link

github-actions bot commented Mar 22, 2022

📱 Scan the QR code below to install the build for this PR.
🔒 This build is for internal testing purpose. Only devices listed in the ad-hoc provisioning profile can install Element Alpha.

QR code

If you can't scan the QR code you can install the build via this link: https://i.diawi.com/feLpCf

Copy link
Member

@pixlwave pixlwave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@Anderas Anderas merged commit 70d39ef into develop Mar 22, 2022
@Anderas Anderas deleted the andy/5883_search_crash branch March 22, 2022 16:51
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.

App crashes when trying to join a room by its address
2 participants