mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Null check
This commit is contained in:
parent
41fb94f1f8
commit
80583d2dc2
1 changed files with 1 additions and 6 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue