1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-23 18:18:00 +02:00

Fixed null check

This commit is contained in:
Brian Fiete 2022-06-13 11:05:03 -07:00
parent d9e97c7dc0
commit 500a42b054

View file

@ -9744,7 +9744,7 @@ BfTypedValue BfExprEvaluator::MatchMethod(BfAstNode* targetSrc, BfMethodBoundExp
if (targetType != NULL)
{
auto typeInst = targetType->ToTypeInstance();
if ((targetType != NULL) && (!methodName.IsEmpty()))
if ((typeInst != NULL) && (!methodName.IsEmpty()))
{
BfTypeVector paramTypes;
for (int argIdx = 0; argIdx < (int)argValues.mResolvedArgs.size(); argIdx++)