diff --git a/datasources/kmb/BusStop.go b/datasources/kmb/BusStop.go index 79b7ffe..b77e645 100644 --- a/datasources/kmb/BusStop.go +++ b/datasources/kmb/BusStop.go @@ -43,8 +43,10 @@ func (this *BusStop) Reload() { searchData := []*string{} searchData = append(searchData, &this.BusStopId) - for _, v := range *this.Name { - searchData = append(searchData, &v) + if this.Name != nil { + for _, v := range *this.Name { + searchData = append(searchData, &v) + } } this.Key = &this.BusStopId