mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-16 23:34:10 +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))
|
if ((memberRefExpression->mTarget == NULL) && (memberRefExpression->mMemberName == NULL))
|
||||||
{
|
{
|
||||||
auto expectingType = mExpectingType;
|
auto expectingType = mExpectingType;
|
||||||
if (expectingType->IsNullable())
|
if ((expectingType != NULL) && (expectingType->IsNullable()))
|
||||||
{
|
{
|
||||||
auto underlyingType = expectingType->GetUnderlyingType();
|
auto underlyingType = expectingType->GetUnderlyingType();
|
||||||
expectingType = underlyingType;
|
expectingType = underlyingType;
|
||||||
|
@ -15044,11 +15044,6 @@ BfTypedValue BfExprEvaluator::GetResult(bool clearResult, bool resolveGenericTyp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mResultFieldInstance != NULL)
|
|
||||||
{
|
|
||||||
NOP;
|
|
||||||
}
|
|
||||||
|
|
||||||
mPropDef = NULL;
|
mPropDef = NULL;
|
||||||
mPropDefBypassVirtual = false;
|
mPropDefBypassVirtual = false;
|
||||||
mIndexerValues.clear();
|
mIndexerValues.clear();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue