Skip to content

Commit

Permalink
Merge pull request #32 from Mokto/patch-1
Browse files Browse the repository at this point in the history
Fix Cannot read property expand of undefined
  • Loading branch information
tomitrescak authored Jun 16, 2016
2 parents 6f7ff3d + f8039bd commit bcd128e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/directoryHandler.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class DirectoryHandler
for pathComponent in activePathComponents
currentPath += fsPath.sep + pathComponent
entry = DirectoryHandler.entryForPath(currentPath)
if entry.expand
if entry && entry.expand
entry.expand()

@entryForPath: (entryPath) ->
Expand Down

0 comments on commit bcd128e

Please sign in to comment.