Skip to content
Snippets Groups Projects
Commit cbf1fe8c authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Fixed possible crash when using completion when completing code in invalid documents.

parent 7bd7aaed
No related branches found
No related tags found
No related merge requests found
......@@ -703,7 +703,7 @@ int CodeCompletion::startCompletion(TextEditor::ITextEditable *editor)
}
// add qml extra words
if (document->qmlProgram()) {
if (document && document->qmlProgram()) {
static QStringList qmlWords;
if (qmlWords.isEmpty())
qmlWords << "property" << "readonly" << "signal";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment