If I add a field and do not assign anything to it the field->type is NULL. Adding a test case in this draft PR: https://github.com/dotnet/runtime/pull/93035/files