From 5fd1611ed12f52a9ea458e8ade4563d2a34fefa8 Mon Sep 17 00:00:00 2001 From: chenfufeng Date: Tue, 15 Mar 2022 12:10:48 +0800 Subject: [PATCH] =?UTF-8?q?[Fix]=E6=8D=95=E8=8E=B7=E4=B9=98=E5=AE=A2?= =?UTF-8?q?=E5=B1=8F=E8=A7=A3=E6=9E=90=E6=95=B0=E6=8D=AE=E5=8F=8A=E4=BB=A5?= =?UTF-8?q?=E5=90=8E=E6=B5=81=E7=A8=8B=E4=B8=AD=E5=87=BA=E7=8E=B0=E7=9A=84?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=EF=BC=8C=E9=98=B2=E6=AD=A2Netty=20Client?= =?UTF-8?q?=E8=A2=AB=E6=96=AD=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/function/autopilot/MoGoAutopilotProvider.kt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/MoGoAutopilotProvider.kt b/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/MoGoAutopilotProvider.kt index b46069a261..1c763bb1db 100644 --- a/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/MoGoAutopilotProvider.kt +++ b/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/MoGoAutopilotProvider.kt @@ -110,8 +110,13 @@ class MoGoAutopilotProvider : NettyClientListener { override fun onMessageResponseClient(msg: MogoProtocolMsg?, sign: String?) { // 乘客端收到adas数据直接解析,后续分发解析后的数据流程同司机端 - msg?.let { - AdasManager.getInstance().parseIPCData(it.body) + try { + msg?.let { + AdasManager.getInstance().parseIPCData(it.body) + } + } catch (e: Exception) { + e.printStackTrace() + CallerLogger.e("$M_ADAS_IMPL$TAG", "乘客屏解析数据流程中出现异常:${e.message}") } }