Commit eaef4961 authored by hujiebin's avatar hujiebin

feat:空指针保护

parent 2aae7dcc
...@@ -182,8 +182,10 @@ func (s *GroupService) GroupIn(userId uint64, externalId string, groupUuid strin ...@@ -182,8 +182,10 @@ func (s *GroupService) GroupIn(userId uint64, externalId string, groupUuid strin
if err != nil { if err != nil {
model.Log.Errorf("GroupIn GetGroupUserOrInit err:%v, groupId:%v, userId:%v", err, groupUuid, userId) model.Log.Errorf("GroupIn GetGroupUserOrInit err:%v, groupId:%v, userId:%v", err, groupUuid, userId)
} }
if err := groupUser.SetRoomInTime().Persistent(); err != nil { if groupUser != nil {
model.Log.Errorf("GroupIn groupUser Persistent err:%v, groupId:%v, userId:%v", err, groupUuid, userId) if err := groupUser.SetRoomInTime().Persistent(); err != nil {
model.Log.Errorf("GroupIn groupUser Persistent err:%v, groupId:%v, userId:%v", err, groupUuid, userId)
}
} }
// 发送进群TIM信令。fixme: 应该发在event处理 // 发送进群TIM信令。fixme: 应该发在event处理
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment