Skip to content

Commit

Permalink
Missing checks (#29096)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmarti committed Aug 10, 2018
1 parent 6203d52 commit 97ed476
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,19 +120,19 @@ export class QuickOpenController extends Component implements IQuickOpenService
}

accept(): void {
if (this.quickOpenWidget.isVisible()) {
if (this.quickOpenWidget && this.quickOpenWidget.isVisible()) {
this.quickOpenWidget.accept();
}
}

focus(): void {
if (this.quickOpenWidget.isVisible()) {
if (this.quickOpenWidget && this.quickOpenWidget.isVisible()) {
this.quickOpenWidget.focus();
}
}

close(): void {
if (this.quickOpenWidget.isVisible()) {
if (this.quickOpenWidget && this.quickOpenWidget.isVisible()) {
this.quickOpenWidget.hide(HideReason.CANCELED);
}
}
Expand Down

0 comments on commit 97ed476

Please sign in to comment.