1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-14 12:13:51 +02:00

Null check fix

This commit is contained in:
Brian Fiete 2025-07-12 10:35:51 -07:00
parent a0b7f5d1da
commit 769572901e

View file

@ -6664,10 +6664,13 @@ void BfModule::DoTypeInstanceMethodProcessing(BfTypeInstance* typeInstance)
auto _CheckEntry = [&](BfTypeDef* typeDef)
{
auto parser = typeDef->mTypeDeclaration->GetParser();
if (parser != NULL)
if (mCompiler->mResolvePassData->GetSourceClassifier(parser) != NULL)
isCurrentEntry = true;
if (typeDef->mTypeDeclaration != NULL)
{
auto parser = typeDef->mTypeDeclaration->GetParser();
if (parser != NULL)
if (mCompiler->mResolvePassData->GetSourceClassifier(parser) != NULL)
isCurrentEntry = true;
}
};
_CheckEntry(typeInstance->mTypeDef);