添加盲区预警、路口碰撞预警监听器

添加一行log日志记录
原因:socket通信云端接口推送过来的json字符串不是标准格式,解析json失败返回null

Signed-off-by: chenfufeng <chenfufeng@zhidaoauto.com>
This commit is contained in:
chenfufeng
2021-09-24 16:58:41 +08:00
committed by liujing
parent f2475e7901
commit def8e8d073
4 changed files with 76 additions and 0 deletions

View File

@@ -167,6 +167,10 @@ public class MogoAiCloudSocketManager extends ConnectionLifecycleListener implem
@Override
public void onMsgReceived(int msgType, Object obj) {
if (obj == null) {
Logger.e(TAG,"Failed to parse the received message!");
return;
}
Logger.d(TAG,"onMsgReceived obj className : " + obj.getClass().getName());
List<IMogoOnMessageListener> listeners = mListeners.get(msgType);
if (listeners != null && !listeners.isEmpty()) {