diff --git a/source/blender/editors/armature/bone_collections.cc b/source/blender/editors/armature/bone_collections.cc index ea5e87d7f9c..048d071eb34 100644 --- a/source/blender/editors/armature/bone_collections.cc +++ b/source/blender/editors/armature/bone_collections.cc @@ -929,6 +929,10 @@ static int add_or_move_to_collection_exec(bContext *C, bArmature *arm = static_cast(ob->data); BoneCollection *target_bcoll = add_or_move_to_collection_bcoll(op, arm); + if (!target_bcoll) { + /* add_or_move_to_collection_bcoll() already reported the reason. */ + return OPERATOR_CANCELLED; + } bool made_any_changes = false; bool had_bones_to_assign = false;