指针判空

This commit is contained in:
meixiongfeng 2023-01-03 18:24:18 +08:00
parent d89de8a808
commit dd5879ff88

View File

@ -115,7 +115,7 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.VikingChal
for _, v1 := range atno {
if v1.A == "equp" {
cfg := this.configure.GetEquipmentConfigureById(v1.T)
if cfg.Star == v {
if cfg != nil && cfg.Star == v {
del = append(del, v1.O)
}
}