mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
null check path.split
https://sentry.io/sharelatex-1/sl-web-client-prod/issues/202702369/
This commit is contained in:
parent
351f9c8252
commit
9a8ee112a5
1 changed files with 2 additions and 0 deletions
|
@ -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("/")
|
||||
|
|
Loading…
Reference in a new issue