Skip to content
Snippets Groups Projects
Commit 4d5e1a9a authored by Christian Kamm's avatar Christian Kamm
Browse files

Fix possible crash in QmlJS semantic checker.

parent 499f7780
No related merge requests found
......@@ -190,11 +190,11 @@ void Check::checkScopeObjectMember(const AST::UiQualifiedId *id)
return;
// attached properties
if (! propertyName.isEmpty() && propertyName[0].isUpper()) {
if (! propertyName.isEmpty() && propertyName[0].isUpper())
scopeObject = _context.typeEnvironment(_doc.data());
if (! scopeObject)
return;
}
if (! scopeObject)
return;
const Value *value = scopeObject->lookupMember(propertyName, &_context);
if (_extraScope && !value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment