abe33 / atom-tree-view-breadcrumb

Display a breadcrumb on tree view scroll
MIT License
10 stars 3 forks source link

Error when opening Atom without a project path #6

Closed postcasio closed 9 years ago

postcasio commented 9 years ago

The breadcrumb view is created even when Atom has no project or tree view, so this line throws an exception because atom.project.getPath() is undefined.

https://github.com/abe33/atom-tree-view-breadcrumb/blob/master/lib/breadcrumb-view.coffee#L9

Probably can be fixed along with https://github.com/abe33/atom-tree-view-breadcrumb/issues/5 just by not creating the view until the tree view is actually opened.

abe33 commented 9 years ago

Thanks, fixed in 0.3.0.