From aca41fd8220d23848bc88659519323e1e10ab100 Mon Sep 17 00:00:00 2001 From: donghongyu Date: Wed, 30 Mar 2022 15:33:37 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E4=BF=AE=E5=A4=8D=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=20https://console.volcengine.com/apmplus/app/crash/detail/laun?= =?UTF-8?q?ch/b9109197006e797b86a7a2bde210274b=3Faid=3D302368&date=3D%7B%2?= =?UTF-8?q?2granularity%22%3A%225m%22%2C%22duration%22%3A%22recently%22%7D?= =?UTF-8?q?&filters=3D%7B%22type%22%3A%22and%22%2C%22sub=5Fconditions%22%3?= =?UTF-8?q?A%5B%7B%22dimension%22%3A%22os%22%2C%22op%22%3A%22in%22%2C%22ty?= =?UTF-8?q?pe%22%3A%22expression%22%2C%22values%22%3A%5B%22Android%22%5D%7?= =?UTF-8?q?D%5D%7D&org=5Fid=3D2100068151&os=3DAndroid&status=3D%5B%22pendi?= =?UTF-8?q?ng%22%2C%22processing%22%2C%22solved%22%2C%22reopen%22%5D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: donghongyu --- .../java/com/mogo/map/utils/ObjectUtils.java | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/libraries/mogo-map/src/main/java/com/mogo/map/utils/ObjectUtils.java b/libraries/mogo-map/src/main/java/com/mogo/map/utils/ObjectUtils.java index 3b987adb29..d2dae39072 100644 --- a/libraries/mogo-map/src/main/java/com/mogo/map/utils/ObjectUtils.java +++ b/libraries/mogo-map/src/main/java/com/mogo/map/utils/ObjectUtils.java @@ -509,19 +509,21 @@ public class ObjectUtils { resultCenterLine.setRoad_id(centerLine.road_id); resultCenterLine.setTile_id(centerLine.tile_id); ArrayList arrayList = new ArrayList<>(); - for (com.zhidaoauto.map.sdk.open.query.LonLatPoint point : centerLine.points) { - com.mogo.eagle.core.data.map.LonLatPoint lonLatPoint = new com.mogo.eagle.core.data.map.LonLatPoint(); - lonLatPoint.setAltitude(point.altitude); - lonLatPoint.setAngle(point.angle); - lonLatPoint.setDistance(point.distance); - lonLatPoint.setLatitude(point.latitude); - lonLatPoint.setLongitude(point.longitude); - lonLatPoint.setProvider(point.provider); - lonLatPoint.setSpeed(point.speed); - lonLatPoint.setDuration(point.duration); - arrayList.add(lonLatPoint); + if (centerLine.points != null) { + for (com.zhidaoauto.map.sdk.open.query.LonLatPoint point : centerLine.points) { + com.mogo.eagle.core.data.map.LonLatPoint lonLatPoint = new com.mogo.eagle.core.data.map.LonLatPoint(); + lonLatPoint.setAltitude(point.altitude); + lonLatPoint.setAngle(point.angle); + lonLatPoint.setDistance(point.distance); + lonLatPoint.setLatitude(point.latitude); + lonLatPoint.setLongitude(point.longitude); + lonLatPoint.setProvider(point.provider); + lonLatPoint.setSpeed(point.speed); + lonLatPoint.setDuration(point.duration); + arrayList.add(lonLatPoint); + } + resultCenterLine.setPoints(arrayList); } - resultCenterLine.setPoints(arrayList); } return resultCenterLine; }