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 {