Material selection didn't support empty geometries. Geometry list can have nullptrs, when meshes contain more than 16 materials, but some materials slots are not actually used in the mesh. Material selection used to still looped over all the materials and tried to draw geometry that aren't there. Regression from !139781 Pull Request: https://projects.blender.org/blender/blender/pulls/141608