From 6cc530b728b62c063d3e6375f2311efc52536e55 Mon Sep 17 00:00:00 2001 From: Harrison Date: Tue, 21 Jun 2022 17:20:31 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-74100=E3=80=90=E5=86=92=E7=83=9F?= =?UTF-8?q?=E3=80=91=E8=BF=9C=E7=A8=8BBI=E7=8E=AF=E5=A2=83=EF=BC=8C13?= =?UTF-8?q?=E4=B8=AAjar=E5=85=A8=E9=83=A8=E6=8F=90=E7=A4=BA=E7=BC=BA?= =?UTF-8?q?=E5=A4=B1=20BI=20=E9=9B=86=E6=88=90=E7=9A=84=20JAR=20=E6=88=96?= =?UTF-8?q?=E8=80=85=E4=B9=8B=E5=89=8D=E7=9A=84=E7=8E=AF=E5=A2=83=EF=BC=8C?= =?UTF-8?q?=20=E8=BF=99=E9=87=8C=E9=9C=80=E8=A6=81=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6=E9=9C=80=E8=A6=81=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E6=A3=80=E6=9F=A5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/fr/env/detect/impl/JarLackDetector.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/designer-base/src/main/java/com/fr/env/detect/impl/JarLackDetector.java b/designer-base/src/main/java/com/fr/env/detect/impl/JarLackDetector.java index 322c15d501..8e28116e51 100644 --- a/designer-base/src/main/java/com/fr/env/detect/impl/JarLackDetector.java +++ b/designer-base/src/main/java/com/fr/env/detect/impl/JarLackDetector.java @@ -54,6 +54,11 @@ public class JarLackDetector extends AbstractExceptionDetector { // 本地情况 List localInfos = BuildInfoManager.getInstance().getInfos(); + // 说明远程环境并不存在对应的 info.json, 直接忽略 + if (Collections.isEmpty(remoteInfos)) { + return DetectorResult.normal(type()); + } + Set remoteSet = remoteInfos.stream() .filter(this::isExistInfo) .map(BuildInfo::getJar)