Commit 060e02a6 authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS completion: Fix segfault.

Reviewed-by: Lasse Holmstedt
parent ad53fa42
......@@ -717,7 +717,7 @@ static const Interpreter::Value *getPropertyValue(
const QStringList &propertyNames,
const Interpreter::Context *context)
{
if (propertyNames.isEmpty())
if (propertyNames.isEmpty() || !object)
return 0;
const Interpreter::Value *value = object;
......
Markdown is supported
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