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:
parent
a0b7f5d1da
commit
769572901e
1 changed files with 7 additions and 4 deletions
|
@ -6663,11 +6663,14 @@ void BfModule::DoTypeInstanceMethodProcessing(BfTypeInstance* typeInstance)
|
||||||
bool isCurrentEntry = false;
|
bool isCurrentEntry = false;
|
||||||
|
|
||||||
auto _CheckEntry = [&](BfTypeDef* typeDef)
|
auto _CheckEntry = [&](BfTypeDef* typeDef)
|
||||||
|
{
|
||||||
|
if (typeDef->mTypeDeclaration != NULL)
|
||||||
{
|
{
|
||||||
auto parser = typeDef->mTypeDeclaration->GetParser();
|
auto parser = typeDef->mTypeDeclaration->GetParser();
|
||||||
if (parser != NULL)
|
if (parser != NULL)
|
||||||
if (mCompiler->mResolvePassData->GetSourceClassifier(parser) != NULL)
|
if (mCompiler->mResolvePassData->GetSourceClassifier(parser) != NULL)
|
||||||
isCurrentEntry = true;
|
isCurrentEntry = true;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
_CheckEntry(typeInstance->mTypeDef);
|
_CheckEntry(typeInstance->mTypeDef);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue