Initialize distance field with BigDecimal.ZERO in DistanceApiService.

This commit is contained in:
Jan 2025-12-14 19:29:00 +01:00
parent eaf3d0da9d
commit 5bcf599e2f

View file

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