Commit 499f7780 authored by Christian Kamm's avatar Christian Kamm
Browse files

Fix possible crash in QmlJS semantic checker.

parent cd53a562
......@@ -190,8 +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;
}
const Value *value = scopeObject->lookupMember(propertyName, &_context);
if (_extraScope && !value)
......
Supports Markdown
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