Index: Source/platform/fonts/win/FontCacheSkiaWin.cpp |
diff --git a/Source/platform/fonts/win/FontCacheSkiaWin.cpp b/Source/platform/fonts/win/FontCacheSkiaWin.cpp |
index b7250d6b6fa28e210e78d5d9b6a6feeac0ab32ca..d42c144b0e6eacd1f22544e634c76643897dd343 100644 |
--- a/Source/platform/fonts/win/FontCacheSkiaWin.cpp |
+++ b/Source/platform/fonts/win/FontCacheSkiaWin.cpp |
@@ -48,6 +48,8 @@ HashMap<String, RefPtr<SkTypeface> >* FontCache::s_sideloadedFonts = 0; |
// static |
void FontCache::addSideloadedFontForTesting(SkTypeface* typeface) |
{ |
+ if (!typeface) |
tkent
2014/09/08 08:14:52
Do you think null typeface is the culprit of the f
|
+ return; |
if (!s_sideloadedFonts) |
s_sideloadedFonts = new HashMap<String, RefPtr<SkTypeface> >; |
SkString name; |