diff --git a/app/http/controllers/plugins/s3fs/s3fs_controller.go b/app/http/controllers/plugins/s3fs/s3fs_controller.go index bcf704a4ae..ca9fc9b4d7 100644 --- a/app/http/controllers/plugins/s3fs/s3fs_controller.go +++ b/app/http/controllers/plugins/s3fs/s3fs_controller.go @@ -58,6 +58,9 @@ func (c *S3fsController) List(ctx http.Context) http.Response { endIndex = len(s3fsList) } pagedS3fsList := s3fsList[startIndex:endIndex] + if pagedS3fsList == nil { + pagedS3fsList = []s3fs{} + } return controllers.Success(ctx, http.Json{ "total": len(s3fsList),