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 <>
Reviewed-by: Christian Kamm's avatarChristian Kamm <>
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)
if (!ast->statement) {
addError(ast->colonToken, tr("Expected object literal after colon."));
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