[normalizer] Allow c->plan to be nullptr

Might want it for subset closure.
This commit is contained in:
Behdad Esfahbod 2024-06-06 13:52:44 -06:00
parent 3e06b7054a
commit bda5f647ce

View file

@ -78,7 +78,7 @@ compose_hebrew (const hb_ot_shape_normalize_context_t *c,
return found;
#endif
if (!found && !c->plan->has_gpos_mark)
if (!found && (c->plan && !c->plan->has_gpos_mark))
{
/* Special-case Hebrew presentation forms that are excluded from
* standard normalization, but wanted for old fonts. */