forked from qt-creator/qt-creator
QmlJSCheck: Fix crash
Task-number: QDS-2766 Change-Id: I4b0e81b8104ac35a286a318e87e95ea022ed66f6 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -1838,7 +1838,10 @@ const Value *Check::checkScopeObjectMember(const UiQualifiedId *id)
|
|||||||
|
|
||||||
const bool isListElementScope = (!m_typeStack.isEmpty() && m_typeStack.last() == "ListElement");
|
const bool isListElementScope = (!m_typeStack.isEmpty() && m_typeStack.last() == "ListElement");
|
||||||
|
|
||||||
if (!value && !isListElementScope) {
|
if (isListElementScope)
|
||||||
|
return nullptr;
|
||||||
|
|
||||||
|
if (!value) {
|
||||||
addMessage(ErrInvalidPropertyName, id->identifierToken, propertyName);
|
addMessage(ErrInvalidPropertyName, id->identifierToken, propertyName);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user