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

Null check fix for case expr out check

This commit is contained in:
Brian Fiete 2022-07-16 15:12:09 -04:00
parent 1db184e7d8
commit 7412bb6cde

View file

@ -3762,7 +3762,7 @@ void BfExprEvaluator::Visit(BfCaseExpression* caseExpr)
}
else if (auto unaryOpExpr = BfNodeDynCast<BfUnaryOperatorExpression>(arg))
{
if (unaryOpExpr->mOpToken->mToken == BfToken_Out)
if ((unaryOpExpr->mOpToken != NULL) && (unaryOpExpr->mOpToken->mToken == BfToken_Out))
{
hasOut = true;
}