From 885acbebe2fe0c65f5e5433a41738ae11c9c26b6 Mon Sep 17 00:00:00 2001 From: Raod <1130305001@qq.com> Date: Thu, 2 Sep 2021 11:00:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AF=BC=E5=87=BA=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E5=9B=BE=E4=B8=BA=E7=A9=BA=E5=AD=98=E5=9C=A8=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dashboard/service/impl/ReportDashboardServiceImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dashboard/service/impl/ReportDashboardServiceImpl.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dashboard/service/impl/ReportDashboardServiceImpl.java index 4f207d94..e4ba8dd8 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dashboard/service/impl/ReportDashboardServiceImpl.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dashboard/service/impl/ReportDashboardServiceImpl.java @@ -348,6 +348,9 @@ public class ReportDashboardServiceImpl implements ReportDashboardService, Initi private String replaceUrl(String imageAddress, Map fileMap) { + if (StringUtils.isBlank(imageAddress)) { + return ""; + } String fileId = imageAddress.substring(imageAddress.trim().length() - 36); String orDefault = fileMap.getOrDefault(fileId, null); if (StringUtils.isBlank(orDefault)) {