[sweeper] fix: NullPointExdeption crash ;
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user