From 31115d8385e6fcd68dae02a4355b6e12f57cd3e6 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Wed, 6 Jul 2022 06:24:14 -0700 Subject: [PATCH] HotTypeData null check in CheckHotMethod --- IDEHelper/Compiler/BfModule.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/IDEHelper/Compiler/BfModule.cpp b/IDEHelper/Compiler/BfModule.cpp index b8295d06..91b14958 100644 --- a/IDEHelper/Compiler/BfModule.cpp +++ b/IDEHelper/Compiler/BfModule.cpp @@ -23141,8 +23141,10 @@ void BfModule::CheckHotMethod(BfMethodInstance* methodInstance, const StringImpl return; if ((mCompiler->mOptions.mAllowHotSwapping) && (!methodInstance->mIsUnspecialized)) - { + { auto srcTypeInst = methodInstance->GetOwner(); + if (srcTypeInst->mHotTypeData == NULL) + return; StringT<128> mangledName = inMangledName;