Skip to content

Commit

Permalink
Add null check in setComments
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachel Macfarlane committed Oct 24, 2018
1 parent 0c6e472 commit 92187cf
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,12 @@ export class ReviewController implements IEditorContribution {
}
}


private setComments(commentInfos: modes.CommentInfo[]): void {
if (!this.editor) {
return;
}

this._commentInfos = commentInfos;
let lineDecorationsWidth: number = this.editor.getConfiguration().layoutInfo.decorationsWidth;

Expand Down

0 comments on commit 92187cf

Please sign in to comment.