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; } }