Skip to content

Commit

Permalink
Missing null check
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Aug 16, 2017
1 parent 6536d87 commit 41abd21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/emmet/src/defaultCompletionProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {

This comment has been minimized.

Copy link
@nitaria

nitaria Aug 24, 2017

Accoun

This comment has been minimized.

Copy link
@nitaria

nitaria via email Aug 24, 2017

let newItem = new vscode.CompletionItem(item.label);
newItem.documentation = item.documentation;
Expand Down

0 comments on commit 41abd21

Please sign in to comment.