[sweeper] fix: NullPointExdeption crash ;

This commit is contained in:
aibingbing
2023-03-14 14:17:52 +08:00
parent 15b5258d2d
commit ba2932c285

View File

@@ -353,6 +353,11 @@ public class SweeperTaskModel {
//根据围栏判断,是否到达子任务终点
private void judgeArrivedStation(MogoLocation location) {
if (mCurrentSubTaskDetail == null) {
Log.d(TAG, "行程日志-judgeArrivedStation() mCurrentSubTaskDetail is null");
CallerLogger.INSTANCE.d(TAG, "行程日志-judgeArrivedStation() mCurrentSubTaskDetail is null");
return;
}
double endSiteLon = mCurrentSubTaskDetail.getEndSiteLon();
double endSiteLat = mCurrentSubTaskDetail.getEndSiteLat();
double distance = CoordinateUtils.calculateLineDistance(