Commit a49df504 authored by Robert Loehning's avatar Robert Loehning
Browse files

qmljs: Prevent possible nullptr access



Change-Id: Ice4a2dd102ed4afda351dc7d011752120d3952b5
Reviewed-by: default avatarMarco Benelli <marco.benelli@qt.io>
Reviewed-by: Christian Kamm's avatarChristian Kamm <mail@ckamm.de>
parent 16b32350
......@@ -641,7 +641,9 @@ void TypeDescriptionReader::readMetaObjectRevisions(UiScriptBinding *ast, FakeMe
void TypeDescriptionReader::readEnumValues(AST::UiScriptBinding *ast, LanguageUtils::FakeMetaEnum *fme)
{
if (!ast || !ast->statement) {
if (!ast)
return;
if (!ast->statement) {
addError(ast->colonToken, tr("Expected object literal after colon."));
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment