diff --git a/src/main/java/ru/touchin/roboswag/components/views/TypefacedViewHelper.java b/src/main/java/ru/touchin/roboswag/components/views/TypefacedViewHelper.java index c8f8bf7..e050433 100644 --- a/src/main/java/ru/touchin/roboswag/components/views/TypefacedViewHelper.java +++ b/src/main/java/ru/touchin/roboswag/components/views/TypefacedViewHelper.java @@ -37,7 +37,7 @@ public final class TypefacedViewHelper { final Typeface typeface = typefacedText.getTypeface(); typefacedText.setTypeface(customTypeface, typeface == null ? Typeface.NORMAL : typeface.getStyle()); } - } else if (!allowEmptyCustomTypeface) { + } else if (attrs != null && !allowEmptyCustomTypeface) { Lc.assertion("TypefacedText has no customTypeface attribute: " + typefacedText); } }