Skip to content

Commit

Permalink
fix: NRE
Browse files Browse the repository at this point in the history
  • Loading branch information
workgroupengineering committed Jun 14, 2024
1 parent a1310dc commit ab3a6fe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ private TypeWrapper(TypeDef type, DnlibMetadataProviderSession session)
throw new ArgumentNullException();
_type = type;
_session = session;
AssemblyQualifiedName = $"{type.FullName}, {type.DefinitionAssembly.Name}";
AssemblyQualifiedName = type.DefinitionAssembly is null
? type.FullName
: $"{type.FullName}, {type.DefinitionAssembly.Name}";
}

public string FullName => _type.FullName;
Expand Down

0 comments on commit ab3a6fe

Please sign in to comment.