From bda5f647ce6de9fd4424d20a6022c941fc09f671 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 6 Jun 2024 13:52:44 -0600 Subject: [PATCH] [normalizer] Allow c->plan to be nullptr Might want it for subset closure. --- src/hb-ot-shaper-hebrew.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-shaper-hebrew.cc b/src/hb-ot-shaper-hebrew.cc index e18edd6b3..7e5482a96 100644 --- a/src/hb-ot-shaper-hebrew.cc +++ b/src/hb-ot-shaper-hebrew.cc @@ -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. */