diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-26 04:49:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-26 07:32:40 +0300 |
commit | 33da997193b570f12db57fabcbe02e7283b7bbfc (patch) | |
tree | 092bc162d034f17c6c72fde5c0a490b5d3f13f85 /source/blender/editors/sculpt_paint/paint_ops.c | |
parent | 52cff88f72674ff77638a5e60d8837e6c715b34e (diff) |
Fix crashes from various missing checks in operator poll functions
Issues exposed by 'bl_run_operators.py' utility.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_ops.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_ops.c b/source/blender/editors/sculpt_paint/paint_ops.c index 0ed657ba460..ff0852aaf16 100644 --- a/source/blender/editors/sculpt_paint/paint_ops.c +++ b/source/blender/editors/sculpt_paint/paint_ops.c @@ -303,7 +303,7 @@ static void PALETTE_OT_color_delete(wmOperatorType *ot) static bool palette_extract_img_poll(bContext *C) { SpaceLink *sl = CTX_wm_space_data(C); - if (sl->spacetype == SPACE_IMAGE) { + if ((sl != NULL) && (sl->spacetype == SPACE_IMAGE)) { return true; } |