In edit mode the uv map data length gets set to zero. The specialized MLoopUV code used to have a check to detect this when trying to access the UVs using foreach_get/set . Add this check for the Attribute code path as well. Pull Request: https://projects.blender.org/blender/blender/pulls/109179