Browse Source

TypedValueToString fix with null type

Brian Fiete 6 months ago
parent
commit
939c1079ee
1 changed files with 1 additions and 1 deletions
  1. 1 1
      IDEHelper/Compiler/CeDebugger.cpp

+ 1 - 1
IDEHelper/Compiler/CeDebugger.cpp

@@ -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");