diff --git a/OCH/taxi/unmanned-driver/src/main/java/com/mogo/och/unmanned/taxi/utils/TaxiTrajectoryManager.kt b/OCH/taxi/unmanned-driver/src/main/java/com/mogo/och/unmanned/taxi/utils/TaxiTrajectoryManager.kt index 5b9a3baa23..3b889a749f 100644 --- a/OCH/taxi/unmanned-driver/src/main/java/com/mogo/och/unmanned/taxi/utils/TaxiTrajectoryManager.kt +++ b/OCH/taxi/unmanned-driver/src/main/java/com/mogo/och/unmanned/taxi/utils/TaxiTrajectoryManager.kt @@ -242,7 +242,7 @@ object TaxiTrajectoryManager { } private fun sendTrajectoryReq() { - if (mAutoPilotLine != null) { + if (mAutoPilotLine != null&&mAutoPilotLine?.autoPilotLine!=null) { printInfoMsg("[下发轨迹] sendTrajectoryDownloadReq, lindId=" + mAutoPilotLine?.autoPilotLine?.lineId + ", lineName=" + mAutoPilotLine?.autoPilotLine?.lineName) writeChainLog( "轨迹监控", @@ -250,14 +250,14 @@ object TaxiTrajectoryManager { true, OchChainLogManager.EVENT_KEY_INFE_WITH_TRAJECTORY ) - CallerAutoPilotControlManager.sendTrajectoryDownloadReq(mAutoPilotLine!!, COMMON_LOADING) + CallerAutoPilotControlManager.sendTrajectoryDownloadReq(mAutoPilotLine!!.autoPilotLine!!, COMMON_LOADING) } else { e(SceneConstant.M_TAXI + TAG, "sendTrajectoryReq(): mAutoPilotLine is null!!!") } - if (mPreAutoPilotLine != null) { + if (mPreAutoPilotLine != null&&mPreAutoPilotLine?.autoPilotLine!=null) { printInfoMsg("[下发预加载轨迹] sendTrajectoryDownloadReq, lindId=" + mPreAutoPilotLine?.autoPilotLine?.lineId + ", lineName=" + mPreAutoPilotLine?.autoPilotLine?.lineName) - CallerAutoPilotControlManager.sendTrajectoryDownloadReq(mPreAutoPilotLine!!, PRE_LOADING) + CallerAutoPilotControlManager.sendTrajectoryDownloadReq(mPreAutoPilotLine!!.autoPilotLine!!, PRE_LOADING) } else { e(SceneConstant.M_TAXI + TAG, "sendTrajectoryReq(): mPreAutoPilotLine is null!!!") }