forked from qt-creator/qt-creator
QmlJS completion: Fix segfault.
Reviewed-by: Lasse Holmstedt
This commit is contained in:
@@ -717,7 +717,7 @@ static const Interpreter::Value *getPropertyValue(
|
|||||||
const QStringList &propertyNames,
|
const QStringList &propertyNames,
|
||||||
const Interpreter::Context *context)
|
const Interpreter::Context *context)
|
||||||
{
|
{
|
||||||
if (propertyNames.isEmpty())
|
if (propertyNames.isEmpty() || !object)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
const Interpreter::Value *value = object;
|
const Interpreter::Value *value = object;
|
||||||
|
|||||||
Reference in New Issue
Block a user