Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Fix crash if onLoadError uri parameter is null #3000

Merged
merged 1 commit into from
Mar 20, 2020

Conversation

MortimerGoro
Copy link
Contributor

Crash report:
https://crash-stats.mozilla.com/report/index/edff4a20-a2d4-41a4-9dd5-773d10200319

I reproduced it sending invalid uris in intents

@MortimerGoro MortimerGoro self-assigned this Mar 19, 2020
Comment on lines +139 to +141
if (uri != null) {
html = html.replace("%url%", uri);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if it would be better to do:
html = html.replace("%url%", uri != null ? uri : "NULL");

@bluemarvin bluemarvin added this to the #10 features milestone Mar 19, 2020
@keianhzo keianhzo merged commit a6ae172 into master Mar 20, 2020
@keianhzo keianhzo deleted the v10/null_uri_on_error branch March 20, 2020 13:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants