Commit: 8668006519e39c0fcaf2e3f2b5e508eb8478e2e4
Author: Bastien Montagne
Date:   Wed Feb 11 11:16:32 2015 +0100
Branches: master
https://developer.blender.org/rB8668006519e39c0fcaf2e3f2b5e508eb8478e2e4

Fix crasher in own UIList bookmarks commit.

Immediate crash in merged asset-experiments branch, no idea why it did not show 
in master too?

===================================================================

M       source/blender/editors/space_file/space_file.c

===================================================================

diff --git a/source/blender/editors/space_file/space_file.c 
b/source/blender/editors/space_file/space_file.c
index 6612d5e..3c60233 100644
--- a/source/blender/editors/space_file/space_file.c
+++ b/source/blender/editors/space_file/space_file.c
@@ -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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to