Material index of faces could be a invalid value after booleaning in exact boolean in "Index Based" mode against objects with no material slots, this is caused by the lack of initilization material remapping array. Now all initilized to 0. Assigning 0 explicitly in Fast mode as well for consistency. Pull Request: https://projects.blender.org/blender/blender/pulls/121380