null check path.split

https://sentry.io/sharelatex-1/sl-web-client-prod/issues/202702369/
This commit is contained in:
Henry Oswald 2017-03-17 10:35:07 +00:00
parent 351f9c8252
commit 9a8ee112a5

View file

@ -173,6 +173,8 @@ define [
@_findEntityByPathInFolder @$scope.rootFolder, path
_findEntityByPathInFolder: (folder, path) ->
if !path? or !folder?
return null
parts = path.split("/")
name = parts.shift()
rest = parts.join("/")