Skip to content

Commit

Permalink
breadcrumbs - fix npe when opening input without resource
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Jul 17, 2018
1 parent 65c06f6 commit d1272ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export class BreadcrumbsControl {
const input = this._editorGroup.activeEditor;
this._breadcrumbsDisposables = dispose(this._breadcrumbsDisposables);

if (!input || (input.getResource().scheme !== Schemas.untitled && !this._fileService.canHandleResource(input.getResource()))) {
if (!input || !input.getResource() || (input.getResource().scheme !== Schemas.untitled && !this._fileService.canHandleResource(input.getResource()))) {
// cleanup and return when there is no input or when
// we cannot handle this input
if (!this.isHidden()) {
Expand Down

0 comments on commit d1272ff

Please sign in to comment.