Fixed nil pointer error

This commit is contained in:
2026-05-23 20:10:34 +08:00
parent 435637e1a4
commit 6457f6d14e
+4 -2
View File
@@ -43,8 +43,10 @@ func (this *BusStop) Reload() {
searchData := []*string{} searchData := []*string{}
searchData = append(searchData, &this.BusStopId) searchData = append(searchData, &this.BusStopId)
for _, v := range *this.Name { if this.Name != nil {
searchData = append(searchData, &v) for _, v := range *this.Name {
searchData = append(searchData, &v)
}
} }
this.Key = &this.BusStopId this.Key = &this.BusStopId