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

Fixed crash when trying to load invalid image uri #4400

Merged
2 commits merged into from
Mar 23, 2020

Conversation

jonthysell
Copy link
Contributor

@jonthysell jonthysell commented Mar 23, 2020

Rather than crashing the entire app if the image uri is invalid (not actually a uri), just don't set the source.

Fixes issue #3738

Microsoft Reviewers: Open in CodeFlow

@jonthysell jonthysell requested a review from a team as a code owner March 23, 2020 18:29
@ghost ghost added the vnext label Mar 23, 2020
@jonthysell jonthysell added AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity) Backport to 0.61 labels Mar 23, 2020
@ghost
Copy link

ghost commented Mar 23, 2020

Hello @jonthysell!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 60 minutes, a condition that will be fulfilled in about 57 minutes. No worries though, I will be back when the time is right! 😉

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.


SetBackground(true);
m_imageSource = source;
Copy link
Contributor

Choose a reason for hiding this comment

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

m_imageSource = source; [](start = 4, length = 23)

Should m_imageSource be cleared out in the case of an exception being caught?

Copy link
Contributor

@kmelmon kmelmon left a comment

Choose a reason for hiding this comment

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

:shipit:

@ghost ghost merged commit 9df9830 into microsoft:master Mar 23, 2020
@jonthysell jonthysell deleted the playground3738 branch March 23, 2020 21:27
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Image AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants