QmlJS completion: Fix segfault.

Reviewed-by: Lasse Holmstedt
This commit is contained in:
Christian Kamm
2010-12-07 16:33:22 +01:00
parent ad53fa42b0
commit 060e02a678

View File

@@ -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;