Skip to content

Commit

Permalink
fix: GetCharacterIndexAtPoint throws if layout manager is null
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Oct 5, 2024
1 parent 7fdef45 commit 97d9c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uno.UI/UI/Xaml/Controls/TextBlock/TextBlock.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ private Size LayoutTypography(Size size)

private int GetCharacterIndexAtPoint(Point point)
{
if (!_drawRect.Contains(point))
if (!_drawRect.Contains(point) || _layoutManager is null)
{
return -1;
}
Expand Down

0 comments on commit 97d9c7d

Please sign in to comment.