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

Avoid NRE from GetGlyphPath #14530

Merged
merged 2 commits into from
Feb 8, 2024
Merged

Avoid NRE from GetGlyphPath #14530

merged 2 commits into from
Feb 8, 2024

Conversation

maxkatz6
Copy link
Member

@maxkatz6 maxkatz6 commented Feb 8, 2024

What does the pull request do?

While building glyph run geometry, GetGlyphPath can return null SKPath. I can consistently reproduce it on macOS in RenderDemo - FormattedText page.
Not sure if it's a correct fix, but seems like it, since we already ignore empty paths.

@maxkatz6 maxkatz6 added the backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch label Feb 8, 2024
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.1.999-cibuild0044567-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.1.999-cibuild0044590-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@jmacato jmacato added this pull request to the merge queue Feb 8, 2024
Merged via the queue into master with commit 2c1512d Feb 8, 2024
7 checks passed
@jmacato jmacato deleted the maxkatz6-patch-1 branch February 8, 2024 10:15
maxkatz6 added a commit that referenced this pull request Feb 9, 2024
@maxkatz6 maxkatz6 added backported-11.0.x and removed backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch labels Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants