添加盲区预警、路口碰撞预警监听器
添加一行log日志记录 原因:socket通信云端接口推送过来的json字符串不是标准格式,解析json失败返回null Signed-off-by: chenfufeng <chenfufeng@zhidaoauto.com>
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user