Missing null check

release/1.15 1.15.1
Ramya Achutha Rao 2017-08-16 10:04:20 -07:00
parent 6536d87435
commit 41abd21afd
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ export class DefaultCompletionItemProvider implements vscode.CompletionItemProvi
let result: vscode.CompletionList = doComplete(document, position, syntax, getEmmetConfiguration());
let newItems: vscode.CompletionItem[] = [];
if (result.items) {
if (result && result.items) {
result.items.forEach(item => {
let newItem = new vscode.CompletionItem(item.label);
newItem.documentation = item.documentation;