From a451aa5465ed80963f09c9f0290979608b1d675e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 29 Jan 2023 11:25:28 -0500 Subject: [PATCH] Add back a null check This was accidentally dropped in the previous commit. --- src/hb-ot-cmap-table.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-ot-cmap-table.hh b/src/hb-ot-cmap-table.hh index 3c6c87fc0..9f8818e65 100644 --- a/src/hb-ot-cmap-table.hh +++ b/src/hb-ot-cmap-table.hh @@ -1898,6 +1898,8 @@ struct cmap bool get_nominal_glyph (hb_codepoint_t unicode, hb_codepoint_t *glyph) const { + if (unlikely (!this->get_glyph_funcZ)) return false; + return this->get_glyph_funcZ (this->get_glyph_data, unicode, glyph); }