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:
authorAuthor Name <email@address.com>2019-03-30 18:03:39 +0300
committerAntonioya <blendergit@gmail.com>2019-03-30 18:06:45 +0300
commit4b6a4b5bc25bce10367dffadf7718e373f81f299 (patch)
treea46f175c3f7ede4862b47cb30b1a0ca80f4a6deb /source/blender/editors/gpencil/gpencil_data.c
parent127ad4fa4a3f7f1037c654288acbe32d4267fe9a (diff)
GPencil: Fix segment fault when use F3 search menu.
Author of the patch: Robert Guetzkow (@rjg)
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_data.c')
-rw-r--r--source/blender/editors/gpencil/gpencil_data.c2
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;