Skip to content

Commit 6eb6654

Browse files
committed
Fix microsoft#60456 - null check
1 parent 75adca7 commit 6eb6654

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/vs/workbench/parts/search/browser/searchView.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,11 @@ export class SearchView extends Viewlet implements IViewlet, IPanel {
14291429
this.viewModel.searchResult.rangeHighlightDecorations.removeHighlightRange();
14301430
}
14311431

1432-
return this.editorGroupsService.activateGroup(editor.group);
1432+
if (editor) {
1433+
return this.editorGroupsService.activateGroup(editor.group);
1434+
} else {
1435+
return TPromise.wrap(null);
1436+
}
14331437
}, errors.onUnexpectedError);
14341438
}
14351439

0 commit comments

Comments
 (0)