diff --git a/lib/atom-sync.coffee b/lib/atom-sync.coffee index 673ca47..8b95b15 100644 --- a/lib/atom-sync.coffee +++ b/lib/atom-sync.coffee @@ -58,7 +58,7 @@ module.exports = AtomSync = atom.workspace.getActivePaneItem().buffer.file.path getProjectPath: (f) -> - _.find atom.project.getPaths(), (x) -> (f.indexOf x) isnt -1 + atom.project.getPaths()?.find (x) -> (f.indexOf x) isnt -1 deactivate: -> @controller.destory()