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

Null check in GetCompilerFieldValue

This commit is contained in:
Brian Fiete 2022-07-03 06:16:25 -07:00
parent 32cfb8733f
commit cf269db0eb

View file

@ -14736,7 +14736,7 @@ BfTypedValue BfModule::GetCompilerFieldValue(const StringImpl& str)
return BfTypedValue(mBfIRBuilder->CreateConst(BfTypeCode_Int32, mCompiler->mOptions.mAllocStackCount), GetPrimitiveType(BfTypeCode_Int32));
}
if (mCurMethodState->mMixinState != NULL)
if ((mCurMethodState != NULL) && (mCurMethodState->mMixinState != NULL))
{
if (str == "#CallerLineNum")
{