aboutsummaryrefslogtreecommitdiff
path: root/src/macosx/native/sun/font/CGGlyphImages.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/macosx/native/sun/font/CGGlyphImages.m')
-rw-r--r--src/macosx/native/sun/font/CGGlyphImages.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/macosx/native/sun/font/CGGlyphImages.m b/src/macosx/native/sun/font/CGGlyphImages.m
index dfee153966..48027c498b 100644
--- a/src/macosx/native/sun/font/CGGlyphImages.m
+++ b/src/macosx/native/sun/font/CGGlyphImages.m
@@ -367,6 +367,7 @@ static CFStringRef EMOJI_FONT_NAME = CFSTR("Apple Color Emoji");
bool CGGI_IsColorFont(CGFontRef font)
{
CFStringRef name = CGFontCopyFullName(font);
+ if (name == NULL) return false;
bool isFixedColor = CFStringCompare(name, EMOJI_FONT_NAME, 0) == kCFCompareEqualTo;
CFRelease(name);
return isFixedColor;