Skip to content

Commit

Permalink
[iOS] Remove a nullability error when using 17.2.8104 (#20396)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandel-macaque authored Feb 6, 2024
1 parent 96288c1 commit df4b84b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Core/src/Fonts/EmbeddedFontLoader.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public partial class EmbeddedFontLoader
if (uiFont != null)
return name;

throw new NSErrorException(error);
// we know error is not null, the NotNullWhen attr is missing in the iOS bindings, ref: https://github.com/xamarin/xamarin-macios/pull/20050
throw new NSErrorException(error!);
}
catch (Exception ex)
{
Expand All @@ -59,4 +60,4 @@ public partial class EmbeddedFontLoader
return null;
}
}
}
}

0 comments on commit df4b84b

Please # to comment.