Skip to content

Commit f4f0ab3

Browse files
authored
TypeError: Cannot read properties of null (reading 'uri') (microsoft#154775)
Fixes microsoft#154764
1 parent c31f2d0 commit f4f0ab3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/contrib/comments/browser/commentReply.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ export class CommentReply<T extends IRange | ICellRange> extends Disposable {
218218

219219
this._commentThreadDisposables.push(this._commentThread.onDidChangeInput(input => {
220220
const thread = this._commentThread;
221-
222-
if (thread.input && thread.input.uri !== commentEditor.getModel()!.uri) {
221+
const model = commentEditor.getModel();
222+
if (thread.input && model && (thread.input.uri !== model.uri)) {
223223
return;
224224
}
225225
if (!input) {

0 commit comments

Comments
 (0)