Skip to content

Commit

Permalink
fix: Add a null check in ILPP to handle unresolvable types. (#2485)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadauxCat authored Apr 3, 2023
1 parent e4d628e commit cfb3148
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ private void GetAllFieldsAndResolveGenerics(TypeDefinition type, ref List<TypeRe
private void GetAllBaseTypesAndResolveGenerics(TypeDefinition type, ref List<TypeReference> baseTypes, Dictionary<string, TypeReference> genericParameters)
{

if (type.BaseType == null || type.BaseType.Name == "Object")
if (type == null || type.BaseType == null || type.BaseType.Name == "Object")
{
return;
}
Expand Down

0 comments on commit cfb3148

Please sign in to comment.