aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tests/FontNamesTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/FontNamesTest.cpp b/tests/FontNamesTest.cpp
index 18ba35695e..ee0a1169f3 100644
--- a/tests/FontNamesTest.cpp
+++ b/tests/FontNamesTest.cpp
@@ -153,6 +153,10 @@ static void test_systemfonts(skiatest::Reporter* reporter, bool verbose) {
set->getStyle(j, &fs, &sname);
SkAutoTUnref<SkTypeface> typeface(set->createTypeface(j));
+ if (NULL == typeface.get()) {
+ //TODO: SkFontMgr_fontconfig always returns NULL?
+ continue;
+ }
SkString familyName;
typeface->getFamilyName(&familyName);