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

Null check

This commit is contained in:
Brian Fiete 2020-08-03 05:47:41 -07:00
parent 41fb94f1f8
commit 80583d2dc2

View file

@ -14056,7 +14056,7 @@ void BfExprEvaluator::DoInvocation(BfAstNode* target, BfMethodBoundExpression* m
if ((memberRefExpression->mTarget == NULL) && (memberRefExpression->mMemberName == NULL))
{
auto expectingType = mExpectingType;
if (expectingType->IsNullable())
if ((expectingType != NULL) && (expectingType->IsNullable()))
{
auto underlyingType = expectingType->GetUnderlyingType();
expectingType = underlyingType;
@ -15044,11 +15044,6 @@ BfTypedValue BfExprEvaluator::GetResult(bool clearResult, bool resolveGenericTyp
}
}
if (mResultFieldInstance != NULL)
{
NOP;
}
mPropDef = NULL;
mPropDefBypassVirtual = false;
mIndexerValues.clear();