diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/query/UserCpPairUserProfileQryExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/query/UserCpPairUserProfileQryExe.java index 225d5a61..9ac910b3 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/query/UserCpPairUserProfileQryExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/query/UserCpPairUserProfileQryExe.java @@ -16,6 +16,7 @@ import com.red.circle.other.inner.asserts.user.UserErrorCode; import com.red.circle.other.inner.model.dto.user.UserProfileDTO; import java.time.ZoneId; +import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Objects; @@ -48,7 +49,7 @@ public class UserCpPairUserProfileQryExe { List dismissing = cpRelationshipService.getDismissingByUserId(cmd.requiredReqUserId()); cpRelationshipList.addAll(dismissing); if (cpRelationshipList.isEmpty()) { - return List.of(new CpPairUserProfileCO()); + return Collections.emptyList(); } return cpRelationshipList.stream()