1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Fixed error message NULL issue

This commit is contained in:
Brian Fiete 2022-01-05 07:59:28 -05:00
parent 632c8a4cc5
commit e4510fdb3a

View file

@ -9884,11 +9884,12 @@ void BfExprEvaluator::LookupQualifiedStaticField(BfQualifiedNameNode* nameNode,
return;
}
mResult = LookupField(nameNode->mRight, mResult, fieldName);
auto leftResult = mResult;
mResult = LookupField(nameNode->mRight, leftResult, fieldName);
if ((mResult) || (mPropDef != NULL))
return;
mModule->Fail(StrFormat("Unable to find member '%s' in '%s'", fieldName.c_str(), mModule->TypeToString(mResult.mType).c_str()), nameNode->mRight);
mModule->Fail(StrFormat("Unable to find member '%s' in '%s'", fieldName.c_str(), mModule->TypeToString(leftResult.mType).c_str()), nameNode->mRight);
}
void BfExprEvaluator::LookupQualifiedStaticField(BfAstNode* nameNode, BfIdentifierNode* nameLeft, BfIdentifierNode* nameRight, bool ignoreIdentifierNotFoundError)