mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Merge pull request #1384 from disarray2077/patch-1
Fix null dereference crash in parser
This commit is contained in:
commit
cf7b6a7fee
1 changed files with 1 additions and 1 deletions
|
@ -2811,7 +2811,7 @@ BfExpression* BfReducer::CreateExpression(BfAstNode* node, CreateExprFlags creat
|
|||
bool continueCascade = false;
|
||||
if (auto memberExpr = BfNodeDynCast<BfMemberReferenceExpression>(exprLeft))
|
||||
{
|
||||
if (memberExpr->mDotToken->GetToken() == BfToken_DotDot)
|
||||
if ((memberExpr->mDotToken != NULL) && (memberExpr->mDotToken->GetToken() == BfToken_DotDot))
|
||||
continueCascade = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue