From e21ba009fdece4559be169dcdd7dd2aa24b409f4 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Mon, 20 Feb 2023 10:45:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui=E6=B5=8B=E8=AF=95):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?UI=E5=9C=BA=E6=99=AF=E6=89=B9=E9=87=8F=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E6=97=B6=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1023277 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001023277 --- .../io/metersphere/metadata/service/FileMetadataService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/sdk-parent/sdk/src/main/java/io/metersphere/metadata/service/FileMetadataService.java b/framework/sdk-parent/sdk/src/main/java/io/metersphere/metadata/service/FileMetadataService.java index c1dc1924bb..f2367d6e95 100644 --- a/framework/sdk-parent/sdk/src/main/java/io/metersphere/metadata/service/FileMetadataService.java +++ b/framework/sdk-parent/sdk/src/main/java/io/metersphere/metadata/service/FileMetadataService.java @@ -252,7 +252,8 @@ public class FileMetadataService { request.setUpdateTime(fileMetadata.getUpdateTime()); bytes = fileManagerService.downloadFile(request); } - return bytes; + + return Objects.requireNonNullElseGet(bytes, () -> new byte[0]); } public ResponseEntity getFile(String fileId) {