From 5c42d24f2edd0e0b4a9bee9a1e4ffb41601247f9 Mon Sep 17 00:00:00 2001 From: Mr-wang Date: Fri, 28 Jul 2023 16:32:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9E=E7=BA=BF=E6=A0=A1=E9=AA=8C=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../coe/pal/publisher/event/PublishFormBeforeSaveEvent.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/event/PublishFormBeforeSaveEvent.java b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/event/PublishFormBeforeSaveEvent.java index d22ff308..fadfb5fd 100644 --- a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/event/PublishFormBeforeSaveEvent.java +++ b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/event/PublishFormBeforeSaveEvent.java @@ -279,8 +279,14 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int if (shapeName.equals("linker")) { JSONObject from = o.getJSONObject("from"); JSONObject to = o.getJSONObject("to"); + if (to==null||from==null){ + throw new BPMNError("0313", "出入线未与其他形状进行关联,请查看模型,连线校验未通过!!!"); + } String from_id = from.getString("id"); String to_id = to.getString("id"); + if (UtilString.isEmpty(from_id)||UtilString.isEmpty(to_id)){ + throw new BPMNError("0313", "出入线未与其他形状进行关联,请查看模型,连线校验未通过!!!"); + } if (UtilString.isNotEmpty(from_id)) { list_linker.remove(from_id); }else {