aboutsummaryrefslogtreecommitdiffstats
path: root/src/ports
diff options
context:
space:
mode:
authorRussell Brenner <russellbrenner@google.com>2011-07-07 10:05:05 -0700
committerRussell Brenner <russellbrenner@google.com>2011-07-07 10:05:05 -0700
commit04b5451c69f535017109bba8594ce7111c4da2a7 (patch)
treedf6b7813d1cbba794e23b1c8fc304b7557ff14eb /src/ports
parent792a256ab723bbc4b55ba00194fe2a9195cae8c0 (diff)
downloadexternal_skia-04b5451c69f535017109bba8594ce7111c4da2a7.zip
external_skia-04b5451c69f535017109bba8594ce7111c4da2a7.tar.gz
external_skia-04b5451c69f535017109bba8594ce7111c4da2a7.tar.bz2
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
Diffstat (limited to 'src/ports')
-rw-r--r--src/ports/SkFontHost_android.cpp2
1 files changed, 1 insertions, 1 deletions
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 @@ SkFontID SkFontHost::NextLogicalFont(SkFontID currFontID, SkFontID origFontID) {
*/
SkTypeface* origTypeface = find_from_uniqueID(origFontID);
- SkTypeface::Style origStyle = origTypeface->style();
+ SkTypeface::Style origStyle = origTypeface ? origTypeface->style() : SkTypeface::kNormal;
FamilyRec* family = gFallbackHead;
while (family) {