[Bf-blender-cvs] [ac80ceae770] blender2.8: Correct missing NULL check in recent commit

Campbell Barton noreply at git.blender.org
Tue Dec 18 03:49:22 CET 2018


Commit: ac80ceae7707918eb410dcef6df199adf1615ca7
Author: Campbell Barton
Date:   Tue Dec 18 13:49:09 2018 +1100
Branches: blender2.8
https://developer.blender.org/rBac80ceae7707918eb410dcef6df199adf1615ca7

Correct missing NULL check in recent commit

===================================================================

M	source/blender/editors/space_view3d/view3d_gizmo_empty.c

===================================================================

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) {



More information about the Bf-blender-cvs mailing list