only run assertions on typeData.fields if typeData isn't null.