mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Null check
This commit is contained in:
parent
25a71c284a
commit
6df69a7d95
1 changed files with 3 additions and 1 deletions
|
@ -12966,7 +12966,9 @@ BfModuleMethodInstance BfModule::GetMethodInstance(BfTypeInstance* typeInst, BfM
|
||||||
bool isExternalExtensionMethod = false;
|
bool isExternalExtensionMethod = false;
|
||||||
if ((!typeInst->IsUnspecializedType()) && (!isUnspecializedPass))
|
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;
|
auto specProject = methodDef->mDeclaringType->mProject;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue