Skip to content

Commit 77d7b2d

Browse files
authored
Fix DumpToken for field ref without generic (#3171)
***NO_CI***
1 parent dce18f5 commit 77d7b2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CLR/Diagnostics/Info.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ void CLR_RT_Assembly::DumpToken(CLR_UINT32 token, const CLR_RT_TypeSpec_Index *g
447447
const auto &xref = crossReferenceFieldRef[index];
448448

449449
// If the caller passed in a closed‐generic TypeSpec, use that …
450-
if (genericType->data != CLR_EmptyToken)
450+
if (genericType != nullptr && genericType->data != CLR_EmptyToken)
451451
{
452452
// Build the closed‐generic owner name
453453
char rgType[256], *sz = rgType;

0 commit comments

Comments
 (0)