Skip to content

Commit

Permalink
Avoid panic for invalid IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed Nov 21, 2024
1 parent 29d1c86 commit 1fd2613
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/files/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -1546,6 +1546,9 @@ func GetAllDocs(c echo.Context) error {
out := make([]jsonapi.Object, 0)
fp := vfs.NewFilePatherWithCache(inst.VFS())
for _, result := range results {
if result.DirDoc == nil {
continue
}
if result.ID() == consts.TrashDirID {
continue
}
Expand Down

0 comments on commit 1fd2613

Please sign in to comment.