fixed crash

This commit is contained in:
lixiaopeng
2021-08-13 11:24:11 +08:00
parent 28d1c5593e
commit f16979b6cb

View File

@@ -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
)
)