Fixed nil pointer error
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user