diff --git a/plugin/platforms/android/java/com/nativescript/label/Font.java b/plugin/platforms/android/java/com/nativescript/label/Font.java index 237a150..e7d3f97 100644 --- a/plugin/platforms/android/java/com/nativescript/label/Font.java +++ b/plugin/platforms/android/java/com/nativescript/label/Font.java @@ -223,7 +223,7 @@ public static SpannableStringBuilder stringBuilderFromHtmlString(Context context style = split[1]; } Typeface typeface = createTypeface(context, fontFolder, fontFamily, - style.equals("bold") ? "bold" : "normal", style.equals("bold"), style.equals("italic")); + (style != null) && style.equals("bold") ? "bold" : "normal", (style != null) && style.equals("bold"), (style != null) && style.equals("italic")); if (typeface == null) { typeface = Typeface.create(fontFamily, Typeface.NORMAL);