-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Fix null ref exception in LookupType5Format2SubTable #365
Conversation
@@ -52,9 +52,9 @@ public IndicShaper(ScriptClass script, Tag unicodeScriptTag, TextOptions textOpt | |||
{ | |||
this.textOptions = textOptions; | |||
|
|||
if (IndicConfigurations.ContainsKey(script)) | |||
if (IndicConfigurations.TryGetValue(script, out ShapingConfiguration value)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.NET 7 CI now throws for ContainsKey
@@ -528,12 +528,13 @@ or 0x2068 | |||
|
|||
if (category != null) | |||
{ | |||
if (!symbols.ContainsKey(category)) | |||
if (!symbols.TryGetValue(category, out int value)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.NET 7 CI now throws for ContainsKey
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #365 +/- ##
=====================================
Coverage 86% 86%
=====================================
Files 238 238
Lines 15182 15184 +2
Branches 2100 2101 +1
=====================================
+ Hits 13085 13088 +3
Misses 1613 1613
+ Partials 484 483 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Prerequisites
Description
Fixes #364 cc @IshmaZX82