From 850dc3b8708c3ad2686469aec56bbe31d22ea057 Mon Sep 17 00:00:00 2001 From: Ido Date: Fri, 2 Jan 2026 15:35:08 +0200 Subject: [PATCH] fix handling of non existing theme --- src/raddbg/raddbg_core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/raddbg/raddbg_core.c b/src/raddbg/raddbg_core.c index 01cfcb8d4..15c82efec 100644 --- a/src/raddbg/raddbg_core.c +++ b/src/raddbg/raddbg_core.c @@ -9327,7 +9327,9 @@ rd_theme_tree_from_name(Arena *arena, Access *access, String8 theme_name) } U128 hash = fs_hash_from_path_range(path, r1u64(0, max_U64), endt_us); String8 data = c_data_from_hash(access, hash); - theme_tree = md_tree_from_string(arena, data); + if (data.size != 0) { + theme_tree = md_tree_from_string(arena, data); + } } } scratch_end(scratch);