fix(ui测试): 修复UI场景批量执行时报错问题

--bug=1023277 --user=郭雨琦
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001023277
This commit is contained in:
guoyuqi 2023-02-20 10:45:05 +08:00 committed by 刘瑞斌
parent 46aa5c9ff2
commit e21ba009fd
1 changed files with 2 additions and 1 deletions

View File

@ -252,7 +252,8 @@ public class FileMetadataService {
request.setUpdateTime(fileMetadata.getUpdateTime()); request.setUpdateTime(fileMetadata.getUpdateTime());
bytes = fileManagerService.downloadFile(request); bytes = fileManagerService.downloadFile(request);
} }
return bytes;
return Objects.requireNonNullElseGet(bytes, () -> new byte[0]);
} }
public ResponseEntity<byte[]> getFile(String fileId) { public ResponseEntity<byte[]> getFile(String fileId) {