Restored null-check in SkFontHost::NextLogicalFont
This updated line was to have been included in CL 118811, but some
bad gerrit-fu caused it to go amiss.
Bug: 4390209
Change-Id: Ia7b8e2849cfae3cdfbebc09a91fe26f2355f1ebb
diff --git a/src/ports/SkFontHost_android.cpp b/src/ports/SkFontHost_android.cpp
index 49b5bd4..4266925 100644
--- a/src/ports/SkFontHost_android.cpp
+++ b/src/ports/SkFontHost_android.cpp
@@ -643,7 +643,7 @@
*/
SkTypeface* origTypeface = find_from_uniqueID(origFontID);
- SkTypeface::Style origStyle = origTypeface->style();
+ SkTypeface::Style origStyle = origTypeface ? origTypeface->style() : SkTypeface::kNormal;
FamilyRec* family = gFallbackHead;
while (family) {