[GDEF] Fix null check

Fixes https://oss-fuzz.com/testcase-detail/5920994267889664
This commit is contained in:
Behdad Esfahbod 2023-05-04 10:36:48 -06:00
parent 3f2401e2f1
commit 319a488b39

View file

@ -869,7 +869,7 @@ struct GDEF
return v;
v = table->get_glyph_props (glyph);
if (likely (table)) // Don't try setting if we are the null instance!
if (likely (table.get_blob ())) // Don't try setting if we are the null instance!
glyph_props_cache.set (glyph, v);
return v;