Skip to content

Commit

Permalink
TypeError: Cannot read properties of null (reading 'uri') (#154775)
Browse files Browse the repository at this point in the history
Fixes #154764
  • Loading branch information
alexr00 committed Jul 11, 2022
1 parent c31f2d0 commit f4f0ab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/workbench/contrib/comments/browser/commentReply.ts
Expand Up @@ -218,8 +218,8 @@ export class CommentReply<T extends IRange | ICellRange> extends Disposable {

this._commentThreadDisposables.push(this._commentThread.onDidChangeInput(input => {
const thread = this._commentThread;

if (thread.input && thread.input.uri !== commentEditor.getModel()!.uri) {
const model = commentEditor.getModel();
if (thread.input && model && (thread.input.uri !== model.uri)) {
return;
}
if (!input) {
Expand Down

0 comments on commit f4f0ab3

Please sign in to comment.