1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

TypedValueToString fix with null type

This commit is contained in:
Brian Fiete 2025-01-23 07:37:44 -08:00
parent 53f4e8955e
commit 939c1079ee

View file

@ -3559,7 +3559,7 @@ String CeDebugger::TypedValueToString(const BfTypedValue& origTypedValue, const
return "";
String reflectedTypeName;
if (displayType->IsInstanceOf(mCompiler->mTypeTypeDef))
if ((displayType->IsInstanceOf(mCompiler->mTypeTypeDef)) && (data != NULL))
{
auto typeInst = displayType->ToTypeInstance();
auto typeIdField = typeInst->mTypeDef->GetFieldByName("mTypeId");