From 5f35aead20576b23765b474e61be86d4b6b790a7 Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Fri, 28 Mar 2025 15:17:49 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E5=A4=8D]=20=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=96=B9=E5=B9=B3=E5=8F=B0=E9=80=9A=E8=BF=87basic=E8=AE=A4?= =?UTF-8?q?=E8=AF=81=E8=B0=83=E7=94=A8=E6=8E=A5=E5=8F=A3=E5=90=8E=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E5=8A=A8=E4=BD=9C=E8=B0=83=E7=94=A8=E9=9B=86=E6=88=90?= =?UTF-8?q?(=E5=86=85=E9=83=A8=E8=AE=A4=E8=AF=81)=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E6=8A=A5=E7=A9=BA=E6=8C=87=E9=92=88=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1386956980715520]第三方平台通过basic认证调用接口后触发动作调用集成(内部认证)时,报空指针异常 http://192.168.0.96:8090/demo/rdm.html#/bug-detail/939050947543040/939050947543057/1386956980715520 --- .../framework/dto/AuthenticationInfoVo.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/java/neatlogic/framework/dto/AuthenticationInfoVo.java b/src/main/java/neatlogic/framework/dto/AuthenticationInfoVo.java index 228515bc8..ba7fbc748 100644 --- a/src/main/java/neatlogic/framework/dto/AuthenticationInfoVo.java +++ b/src/main/java/neatlogic/framework/dto/AuthenticationInfoVo.java @@ -43,7 +43,9 @@ public class AuthenticationInfoVo implements Serializable { vo.userUuidList.addAll(userUuidList); vo.teamUuidList.addAll(teamUuidList); vo.roleUuidList.addAll(roleUuidList); - vo.headerSet.addAll(headerSet); + if (CollectionUtils.isNotEmpty(headerSet)) { + vo.headerSet.addAll(headerSet); + } return vo; } @@ -85,7 +87,9 @@ public class AuthenticationInfoVo implements Serializable { this.userUuid = userUuid; this.teamUuidList.addAll(teamUuidList); this.roleUuidList.addAll(roleUuidList); - this.headerSet.addAll(headerSet); + if (CollectionUtils.isNotEmpty(headerSet)) { + this.headerSet.addAll(headerSet); + } this.originHeader = originHeader; } @@ -93,7 +97,9 @@ public class AuthenticationInfoVo implements Serializable { this.userUuidList.addAll(userUuidList); this.teamUuidList.addAll(teamUuidList); this.roleUuidList.addAll(roleUuidList); - this.headerSet.addAll(headerSet); + if (CollectionUtils.isNotEmpty(headerSet)) { + this.headerSet.addAll(headerSet); + } } public String getUserUuid() { -- Gitee