Skip to content

Commit

Permalink
fix #955 #955
Browse files Browse the repository at this point in the history
Signed-off-by: lecjy <565572696@qq.com>
  • Loading branch information
lecjy committed Nov 4, 2023
1 parent fe6ca09 commit b3c0daa
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,10 @@ public ModelAndView index(ModelMap map, HttpServletRequest request, String useri

}

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) {
Expand Down

0 comments on commit b3c0daa

Please sign in to comment.