mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
null check path.split
https://sentry.io/sharelatex-1/sl-web-client-prod/issues/202702369/
This commit is contained in:
@@ -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("/")
|
||||
|
||||
Reference in New Issue
Block a user