1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 20:12:21 +02:00

Null check

This commit is contained in:
Brian Fiete 2021-08-30 08:00:05 -07:00
parent 25a71c284a
commit 6df69a7d95

View file

@ -12966,7 +12966,9 @@ BfModuleMethodInstance BfModule::GetMethodInstance(BfTypeInstance* typeInst, BfM
bool isExternalExtensionMethod = false;
if ((!typeInst->IsUnspecializedType()) && (!isUnspecializedPass))
{
if (((flags & BfGetMethodInstanceFlag_ForeignMethodDef) == 0) && (methodDef->mDeclaringType->mProject != typeInst->mTypeDef->mProject))
if (((flags & BfGetMethodInstanceFlag_ForeignMethodDef) == 0) &&
(methodDef->mDeclaringType != NULL) &&
(methodDef->mDeclaringType->mProject != typeInst->mTypeDef->mProject))
{
auto specProject = methodDef->mDeclaringType->mProject;