[driver passenger ] bus乘客屏埋点空指针处理

This commit is contained in:
wangmingjun
2022-04-18 14:47:46 +08:00
parent 401f39437c
commit f4c8f4f597

View File

@@ -826,7 +826,7 @@ public class BusOrderModel {
}
public void triggerStartServiceEvent(boolean send) {
if (stationList == null || currentStationIndex >= stationList.size()) {
if (stationList == null || currentStationIndex >= stationList.size() || currentStationIndex == 0) {
return;
}
BusStationBean currentStation = stationList.get( currentStationIndex -1);