Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2016-04-19 23:51:46 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2016-04-19 23:53:18 +0300
commitccbfbeba743f87c5491cdf9010bc1cf6b5c92b03 (patch)
tree9a9c37d7db3cb03104a057871c26ca2d2222aa70
parent11c9ff1eddf849c7c37a152d464a5514df8dfc26 (diff)
Fix crash in rB37493fb9f - there is no guaranty CTX_wm_foo() will return a valid pointer!
-rw-r--r--source/blender/editors/screen/area.c2
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 {