From 3f8290198c34d785de999da991f41537faabee2f Mon Sep 17 00:00:00 2001 From: caihaohan Date: Tue, 16 Apr 2024 14:26:48 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=9C=A8=E7=BA=BF=E7=BC=96=E8=BE=91query?= =?UTF-8?q?ById=E6=8E=A5=E5=8F=A3=E5=A2=9E=E5=8A=A0=E4=BF=9D=E6=8A=A4?= =?UTF-8?q?=E6=80=A7=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/onlyoffice/controller/OnlyOfficeController.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/laws-modules/src/main/java/com/jero/modules/onlyoffice/controller/OnlyOfficeController.java b/laws-modules/src/main/java/com/jero/modules/onlyoffice/controller/OnlyOfficeController.java index 331f0078..d97d063b 100644 --- a/laws-modules/src/main/java/com/jero/modules/onlyoffice/controller/OnlyOfficeController.java +++ b/laws-modules/src/main/java/com/jero/modules/onlyoffice/controller/OnlyOfficeController.java @@ -141,6 +141,10 @@ public class OnlyOfficeController { } HashMap map = new HashMap<>(); BusProcessModelHis his = busProcessModelHisService.getById(id); + if (his == null) { + log.error("在线编辑queryById:{}", id); + throw new JeroBootException("获取在线编辑文件记录错误,请检查"); + } map.put("fileName", his.getFileName()); map.put("editFilePath", his.getEditFilePath()); map.put("id", his.getId());