From ac80ceae7707918eb410dcef6df199adf1615ca7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 18 Dec 2018 13:49:09 +1100 Subject: Correct missing NULL check in recent commit --- source/blender/editors/space_view3d/view3d_gizmo_empty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_view3d') diff --git a/source/blender/editors/space_view3d/view3d_gizmo_empty.c b/source/blender/editors/space_view3d/view3d_gizmo_empty.c index 695ffc1d7ef..e5dafad0757 100644 --- a/source/blender/editors/space_view3d/view3d_gizmo_empty.c +++ b/source/blender/editors/space_view3d/view3d_gizmo_empty.c @@ -120,7 +120,7 @@ static bool WIDGETGROUP_empty_image_poll(const bContext *C, wmGizmoGroupType *UN ViewLayer *view_layer = CTX_data_view_layer(C); Base *base = BASACT(view_layer); - if (BASE_VISIBLE(v3d, base)) { + if (base && BASE_VISIBLE(v3d, base)) { Object *ob = base->object; if (ob->type == OB_EMPTY) { if (ob->empty_drawtype == OB_EMPTY_IMAGE) { -- cgit v1.2.3