8.0.15 cover location npe

This commit is contained in:
lianglihui
2022-01-13 11:08:06 +08:00
parent df7475211e
commit f9a18fe19b

View File

@@ -166,6 +166,9 @@ public class SmallMapDirectionView
@Override
public void onLocationChanged(@Nullable MogoLocation location) {
//Logger.d(TAG, "onCarLocationChanged2 :" + location.getLatitude()+":"+location.getLongitude());
if (location == null){
return;
}
LatLng currentLatLng = new LatLng(location.getLatitude(), location.getLongitude());
//更新车辆位置
if (mCarMarker != null) {