mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Null invoke check on deleted type
This commit is contained in:
parent
445fc0e982
commit
e47ce74d25
1 changed files with 5 additions and 0 deletions
|
@ -10594,6 +10594,11 @@ BfTypedValue BfExprEvaluator::MatchMethod(BfAstNode* targetSrc, BfMethodBoundExp
|
|||
((typeConstraint->IsDelegate()) || (typeConstraint->IsFunction())))
|
||||
{
|
||||
BfMethodInstance* invokeMethodInstance = mModule->GetRawMethodInstanceAtIdx(typeConstraint->ToTypeInstance(), 0, "Invoke");
|
||||
if (invokeMethodInstance == NULL)
|
||||
{
|
||||
mModule->InternalError("Get Invoke failed", targetSrc);
|
||||
return BfTypedValue();
|
||||
}
|
||||
|
||||
methodDef = invokeMethodInstance->mMethodDef;
|
||||
methodMatcher.mBestMethodInstance = invokeMethodInstance;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue