Skip to content

Commit

Permalink
[MOBILE-4739] Fix typeface NPE (#1542)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlepinski authored Oct 16, 2024
1 parent 237c9f9 commit 812c03c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ internal object InAppViewUtils {
} else {
textView.text = textInfo.text
}
var typefaceFlags = textView.typeface.style

var typefaceFlags = textView.typeface?.style ?: Typeface.NORMAL
var paintFlags = textView.paintFlags or Paint.ANTI_ALIAS_FLAG or Paint.SUBPIXEL_TEXT_FLAG
for (style in textInfo.style ?: emptyList()) {
when (style) {
Expand Down

0 comments on commit 812c03c

Please sign in to comment.