[dev_minibus-d_230425_3.2.0]fix云调度空指针异常
This commit is contained in:
@@ -185,6 +185,50 @@ class DispatchAutoPilotManager private constructor() :
|
||||
)
|
||||
}
|
||||
}
|
||||
if(it.trajUrl == null){
|
||||
ToastUtils.showShort("trajUrl数据为空")
|
||||
return
|
||||
}
|
||||
if(it.trajMd5 == null){
|
||||
ToastUtils.showShort("trajMd5数据为空")
|
||||
return
|
||||
}
|
||||
if(it.stopUrl == null){
|
||||
ToastUtils.showShort("stopUrl数据为空")
|
||||
return
|
||||
}
|
||||
if(it.stopMd5 == null){
|
||||
ToastUtils.showShort("stopMd5数据为空")
|
||||
return
|
||||
}
|
||||
if(it.vehicleModel == null){
|
||||
ToastUtils.showShort("vehicleModel数据为空")
|
||||
return
|
||||
}
|
||||
if(it.trajUrl_dpqp == null){
|
||||
ToastUtils.showShort("trajUrl_dpqp数据为空")
|
||||
return
|
||||
}
|
||||
if(it.trajMd5_dpqp == null){
|
||||
ToastUtils.showShort("trajMd5_dpqp数据为空")
|
||||
return
|
||||
}
|
||||
if(it.stopUrl_dpqp == null){
|
||||
ToastUtils.showShort("stopUrl_dpqp数据为空")
|
||||
return
|
||||
}
|
||||
if(it.lineName == null){
|
||||
ToastUtils.showShort("lineName数据为空")
|
||||
return
|
||||
}
|
||||
if(it.startLocAddress == null){
|
||||
ToastUtils.showShort("startLocAddress数据为空")
|
||||
return
|
||||
}
|
||||
if(it.endLocAddress == null){
|
||||
ToastUtils.showShort("endLocAddress数据为空")
|
||||
return
|
||||
}
|
||||
val currentAutoPilotLine = AutopilotControlParameters.AutoPilotLine(it.lineId.toLong(),it.trajUrl,it.trajMd5,
|
||||
it.stopUrl,it.stopMd5,it.timestamp,it.vehicleModel,it.trajUrl_dpqp,it.trajMd5_dpqp,it.stopUrl_dpqp,
|
||||
it.stopMd5_dpqp,it.timestamp_dpqp)
|
||||
|
||||
Reference in New Issue
Block a user