Correct missing NULL check in recent commit
authorCampbell Barton <ideasman42@gmail.com>
Tue, 18 Dec 2018 02:49:09 +0000 (13:49 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 18 Dec 2018 02:49:09 +0000 (13:49 +1100)
source/blender/editors/space_view3d/view3d_gizmo_empty.c

index 695ffc1d7ef7c885fce667a931bff684a0e72dfc..e5dafad07579ef6ddaff5bec593f9acea77769e7 100644 (file)
@@ -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) {