diff --git a/src/main/java/neatlogic/framework/dto/AuthenticationInfoVo.java b/src/main/java/neatlogic/framework/dto/AuthenticationInfoVo.java index 228515bc82df0732e42b9e9b205a76d2666dea32..ba7fbc74805d788905e7d9769d43d202427f59ea 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() {