Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f45c1258 authored by Joe Hsu's avatar Joe Hsu Committed by Automerger Merge Worker
Browse files

Merge "Check FontFamily null before adding it." into sc-dev am: c73c0986 am: f16b0aaa

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14514102

Change-Id: I1af9b1cc6c525dd86b9bfcc4ae41d1198020b9cb
parents 80853456 f16b0aaa
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -134,7 +134,11 @@ public class FontCustomizationParser {
            throw new IllegalArgumentException("customizationType must be specified");
        }
        if (customizationType.equals("new-named-family")) {
            out.add(FontListParser.readFamily(parser, fontDir, updatableFontMap, false));
            FontFamily fontFamily = FontListParser.readFamily(
                    parser, fontDir, updatableFontMap, false);
            if (fontFamily != null) {
                out.add(fontFamily);
            }
        } else {
            throw new IllegalArgumentException("Unknown customizationType=" + customizationType);
        }