diff options
author | Author Name <email@address.com> | 2019-03-30 18:03:39 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-03-30 18:06:45 +0300 |
commit | 4b6a4b5bc25bce10367dffadf7718e373f81f299 (patch) | |
tree | a46f175c3f7ede4862b47cb30b1a0ca80f4a6deb /source/blender/editors/gpencil | |
parent | 127ad4fa4a3f7f1037c654288acbe32d4267fe9a (diff) |
GPencil: Fix segment fault when use F3 search menu.
Author of the patch: Robert Guetzkow (@rjg)
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_data.c b/source/blender/editors/gpencil/gpencil_data.c index 2d5ec4c5055..e3d57149d0f 100644 --- a/source/blender/editors/gpencil/gpencil_data.c +++ b/source/blender/editors/gpencil/gpencil_data.c @@ -176,7 +176,7 @@ static bool gp_data_unlink_poll(bContext *C) bGPdata **gpd_ptr = ED_gpencil_data_get_pointers(C, NULL); /* only unlink annotation datablocks */ - if (gpd_ptr != NULL) { + if ((gpd_ptr != NULL) && (*gpd_ptr != NULL)) { bGPdata *gpd = (*gpd_ptr); if ((gpd->flag & GP_DATA_ANNOTATIONS) == 0) { return false; |