Merge pull request #82313 from AThousandShips/null_check_servers

[Servers] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
This commit is contained in:
Rémi Verschelde 2023-09-26 13:45:31 +02:00
commit 2c8c7b95aa
No known key found for this signature in database
GPG key ID: C3336907360768E1
48 changed files with 1105 additions and 1105 deletions

View file

@ -5319,7 +5319,7 @@ ShaderLanguage::Node *ShaderLanguage::_parse_expression(BlockNode *p_block, cons
}
}
ERR_FAIL_COND_V(!base_function, nullptr); //bug, wtf
ERR_FAIL_NULL_V(base_function, nullptr); // Bug, wtf.
for (int i = 0; i < call_function->arguments.size(); i++) {
int argidx = i + 1;
@ -5751,7 +5751,7 @@ ShaderLanguage::Node *ShaderLanguage::_parse_expression(BlockNode *p_block, cons
}
}
ERR_FAIL_COND_V(!expr, nullptr);
ERR_FAIL_NULL_V(expr, nullptr);
/* OK now see what's NEXT to the operator.. */