Initialize distance field with BigDecimal.ZERO in DistanceApiService.
This commit is contained in:
parent
eaf3d0da9d
commit
5bcf599e2f
1 changed files with 2 additions and 0 deletions
|
|
@ -121,6 +121,8 @@ public class DistanceApiService {
|
|||
distance.setFromGeoLng(from.getGeoLng());
|
||||
distance.setToGeoLat(to.getGeoLat());
|
||||
distance.setToGeoLng(to.getGeoLng());
|
||||
|
||||
distance.setDistance(BigDecimal.ZERO);
|
||||
}
|
||||
|
||||
return distance;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue