From 7346727cfc2cf5365eccdf09153543d21af38a22 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 15 Dec 2023 20:13:40 +1100 Subject: [PATCH] Fix #116215: Sequencer crashes unlinking packed text [0] caused a regression looking up fonts by filepath. [0]: d770fd5ac48604f17e2d8a1b96e8c88147d95a84 --- source/blender/blenfont/intern/blf.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/blenfont/intern/blf.cc b/source/blender/blenfont/intern/blf.cc index 61c8a84234f..87d1234fb0b 100644 --- a/source/blender/blenfont/intern/blf.cc +++ b/source/blender/blenfont/intern/blf.cc @@ -130,7 +130,7 @@ static int blf_search_by_filepath(const char *filepath) { for (int i = 0; i < BLF_MAX_FONT; i++) { const FontBLF *font = global_font[i]; - if (font && (BLI_path_cmp(font->filepath, filepath) == 0)) { + if (font && font->filepath && (BLI_path_cmp(font->filepath, filepath) == 0)) { return i; } }