diff options
author | Ramya Achutha Rao <ramyar@microsoft.com> | 2017-08-16 20:04:20 +0300 |
---|---|---|
committer | Ramya Achutha Rao <ramyar@microsoft.com> | 2017-08-16 20:04:20 +0300 |
commit | 41abd21afdf7424c89319ee7cb0445cc6f376959 (patch) | |
tree | 9eaed3c7a2410513a885661ecf413ea01ef98a7e | |
parent | 6536d874354000a9a35ef9979bc8da8feca862cf (diff) |
Missing null check1.15.1release/1.15
-rw-r--r-- | extensions/emmet/src/defaultCompletionProvider.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/emmet/src/defaultCompletionProvider.ts b/extensions/emmet/src/defaultCompletionProvider.ts index 7fd535a3418..28adbadfb7a 100644 --- a/extensions/emmet/src/defaultCompletionProvider.ts +++ b/extensions/emmet/src/defaultCompletionProvider.ts @@ -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; |