diff options
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_data.c')
-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; |