1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-07-16 00:22:22 +08:00

Merge pull request #962 from lecjy/feature/955

fix #955 https://github.com/cskefu/cskefu/issues/955
This commit is contained in:
Hai Liang W 2023-11-05 09:32:08 +08:00 committed by GitHub
commit c74018a75b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,9 +130,10 @@ public class OnlineUserController extends Handler {
}
agentUserContactsRes.findOneByUserid(
userid).ifPresent(p -> {
map.put("contacts", contactsRes.findById(p.getContactsid()).orElse(null));
agentUserContactsRes.findOneByUserid(userid).ifPresent(p -> {
if (p.getContactsid() != null) {
map.put("contacts", contactsRes.findById(p.getContactsid()).orElse(null));
}
});
AgentService service = agentServiceRes.findById(agentservice).orElse(null);
if (service != null) {