Fix crasher in own UIList bookmarks commit.

Immediate crash in merged asset-experiments branch, no idea why it did not show in master too?
This commit is contained in:
Bastien Montagne 2015-02-11 11:16:32 +01:00
parent d4934f8f6d
commit 8668006519
Notes: blender-bot 2023-02-14 09:29:43 +01:00
Referenced by issue #43629, Blender crashes on loading file if file browser panel open
1 changed files with 2 additions and 1 deletions

View File

@ -260,7 +260,8 @@ static void file_refresh(const bContext *C, ScrArea *sa)
sfile->layout->dirty = true;
}
if (BKE_area_find_region_type(sa, RGN_TYPE_TOOLS) == NULL) {
/* Might be called with NULL sa, see file_main_area_draw() below. */
if (sa && BKE_area_find_region_type(sa, RGN_TYPE_TOOLS) == NULL) {
/* Create TOOLS/TOOL_PROPS regions. */
file_tools_region(sa);