获取推荐好友 null 判断

back_recharge
jiahuiwen 2021-10-20 13:56:27 +08:00
parent c887793262
commit f61e384ff8
1 changed files with 6 additions and 1 deletions

View File

@ -810,7 +810,12 @@ public class CBean2Proto {
public static CommonProto.Friend getFriendInfo(int friendId, FriendManager friendManager) throws Exception {
User user = UserManager.getUser(friendId);
User user = null;
try {
user = UserManager.getUser(friendId);
} catch (Exception e) {
LOGGER.info("getFriendInfo user == null friendId={} e={}", friendId, e.toString());
}
if (user == null) {
return null;
}