From ccbfbeba743f87c5491cdf9010bc1cf6b5c92b03 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 19 Apr 2016 22:51:46 +0200 Subject: Fix crash in rB37493fb9f - there is no guaranty CTX_wm_foo() will return a valid pointer! --- source/blender/editors/screen/area.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index 64fdbbdd773..3511480821a 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -1509,7 +1509,7 @@ void ED_region_init(bContext *C, ARegion *ar) void ED_region_cursor_set(wmWindow *win, ScrArea *sa, ARegion *ar) { - if (ar->type && ar->type->cursor) { + if (ar && sa && ar->type && ar->type->cursor) { ar->type->cursor(win, sa, ar); } else { -- cgit v1.2.3