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:
authorCampbell Barton <ideasman42@gmail.com>2020-03-26 04:49:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-03-26 07:32:40 +0300
commit33da997193b570f12db57fabcbe02e7283b7bbfc (patch)
tree092bc162d034f17c6c72fde5c0a490b5d3f13f85 /source/blender/editors/gpencil/gpencil_convert.c
parent52cff88f72674ff77638a5e60d8837e6c715b34e (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/gpencil/gpencil_convert.c')
-rw-r--r--source/blender/editors/gpencil/gpencil_convert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_convert.c b/source/blender/editors/gpencil/gpencil_convert.c
index 1c55c3b5a8f..6e2c6936b1a 100644
--- a/source/blender/editors/gpencil/gpencil_convert.c
+++ b/source/blender/editors/gpencil/gpencil_convert.c
@@ -1755,7 +1755,7 @@ void GPENCIL_OT_convert(wmOperatorType *ot)
static bool image_to_gpencil_poll(bContext *C)
{
SpaceLink *sl = CTX_wm_space_data(C);
- if (sl->spacetype == SPACE_IMAGE) {
+ if ((sl != NULL) && (sl->spacetype == SPACE_IMAGE)) {
return true;
}