From 44b132eee568f45914d8ee632b25a6a7ce4c6f95 Mon Sep 17 00:00:00 2001 From: Jianguo-Genius Date: Tue, 16 Apr 2024 15:13:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6=E5=85=B3=E8=81=94=E5=85=B3?= =?UTF-8?q?=E7=B3=BB=E6=B2=A1=E6=9C=89=E5=8F=8A=E6=97=B6=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=80=8C=E5=AF=BC=E8=87=B4=E7=9A=84=E6=8A=A5=E9=94=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1039483 --user=宋天阳 【项目管理】文件管理-文件详情,上一个/下一个操作,提示报错 https://www.tapd.cn/55049933/s/1498432 --- .../io/metersphere/project/service/FileAssociationService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/project-management/src/main/java/io/metersphere/project/service/FileAssociationService.java b/backend/services/project-management/src/main/java/io/metersphere/project/service/FileAssociationService.java index 193723b115..f849684c31 100644 --- a/backend/services/project-management/src/main/java/io/metersphere/project/service/FileAssociationService.java +++ b/backend/services/project-management/src/main/java/io/metersphere/project/service/FileAssociationService.java @@ -70,7 +70,7 @@ public class FileAssociationService { //组装返回参数 List responseList = new ArrayList<>(); associationList.forEach(item -> { - if(fileIdMap.containsKey(item.getFileId())){ + if (fileIdMap.containsKey(item.getFileId()) && sourceIdNameMap.containsKey(item.getSourceId())) { FileAssociationResponse response = new FileAssociationResponse(); response.setId(item.getId()); response.setSourceId(item.getSourceId());