Commit 42e49fcc authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS: Add missing null check for completion in string literals.

parent 02dd995d
......@@ -781,7 +781,9 @@ int CodeCompletion::startCompletion(TextEditor::ITextEditable *editor)
if (contextFinder.isInStringLiteral()) {
const Interpreter::Value *value = getPropertyValue(qmlScopeType, contextFinder.bindingPropertyName(), context);
if (value->asUrlValue()) {
if (!value) {
// do nothing
} else if (value->asUrlValue()) {
QTextCursor tc = edit->textCursor();
QmlExpressionUnderCursor expressionUnderCursor;
expressionUnderCursor(tc);
......
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