diff --git a/modules/mogo-module-obu-mogo/src/main/java/com/mogo/module/obu/mogo/map/ObuRecognizedResultDrawer.kt b/modules/mogo-module-obu-mogo/src/main/java/com/mogo/module/obu/mogo/map/ObuRecognizedResultDrawer.kt index 06ff0ac3e1..a6db2b4e57 100644 --- a/modules/mogo-module-obu-mogo/src/main/java/com/mogo/module/obu/mogo/map/ObuRecognizedResultDrawer.kt +++ b/modules/mogo-module-obu-mogo/src/main/java/com/mogo/module/obu/mogo/map/ObuRecognizedResultDrawer.kt @@ -201,11 +201,11 @@ class ObuRecognizedResultDrawer() { .controlAngle(true) .resName(mMarkerCachesResMd5Values[resIdVal]) .icon3DRes(resId) - .rotate(cvxRvInfoIndInfo.basic_info.heading.toFloat()) + .rotate(if (cvxRvInfoIndInfo.basic_info != null) cvxRvInfoIndInfo.basic_info.heading.toFloat() else 0f) .position( MogoLatLng( - cvxRvInfoIndInfo.basic_info.position.latitude, - cvxRvInfoIndInfo.basic_info.position.longitude + if (cvxRvInfoIndInfo.basic_info != null && cvxRvInfoIndInfo.basic_info.position != null) cvxRvInfoIndInfo.basic_info.position.latitude else 0.0, + if (cvxRvInfoIndInfo.basic_info != null && cvxRvInfoIndInfo.basic_info.position != null) cvxRvInfoIndInfo.basic_info.position.longitude else 0.0 ) )