From 09aad8e0e217fc4d4dd71cebe9790360ad9e61ff Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Thu, 2 Feb 2023 14:53:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=BC=BA=E9=99=B7=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E9=80=9A=E7=9F=A5=E7=A9=BA=E6=8C=87=E9=92=88?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1022158 --user=李玉号 [ 缺陷管理]ldap用户创建jira 缺陷 后台日志报错(两个环境错误日志不一样) https://www.tapd.cn/55049933/s/1330446 --- .../io/metersphere/notice/sender/AbstractNoticeSender.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/framework/sdk-parent/sdk/src/main/java/io/metersphere/notice/sender/AbstractNoticeSender.java b/framework/sdk-parent/sdk/src/main/java/io/metersphere/notice/sender/AbstractNoticeSender.java index f0f34d53d5..eda4ac3b98 100644 --- a/framework/sdk-parent/sdk/src/main/java/io/metersphere/notice/sender/AbstractNoticeSender.java +++ b/framework/sdk-parent/sdk/src/main/java/io/metersphere/notice/sender/AbstractNoticeSender.java @@ -99,6 +99,9 @@ public abstract class AbstractNoticeSender implements NoticeSender { Map jsonObject = new BeanMap(o); String id = (String) jsonObject.get("id"); CustomField customField = baseCustomFieldService.get(id); + if (customField == null) { + continue; + } Object value = jsonObject.get("value"); if (value instanceof String && StringUtils.isNotEmpty((String) value)) { String v = StringUtils.unwrap((String) value, "\""); @@ -143,6 +146,9 @@ public abstract class AbstractNoticeSender implements NoticeSender { } protected List getUserDetails(List userIds) { + if (CollectionUtils.isEmpty(userIds)) { + return new ArrayList<>(); + } return baseUserMapper.queryTypeByIds(userIds); }