diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-04-19 23:51:46 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-04-19 23:53:18 +0300 |
commit | ccbfbeba743f87c5491cdf9010bc1cf6b5c92b03 (patch) | |
tree | 9a9c37d7db3cb03104a057871c26ca2d2222aa70 /source | |
parent | 11c9ff1eddf849c7c37a152d464a5514df8dfc26 (diff) |
Fix crash in rB37493fb9f - there is no guaranty CTX_wm_foo() will return a valid pointer!
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/screen/area.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |