mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge branch 'geofence-api' into 'corrective-policy'
Fix geofence creation validation See merge request entgra/carbon-device-mgt!651
This commit is contained in:
commit
f7843e5c35
@ -533,7 +533,7 @@ public class RequestValidationUtil {
|
||||
throw new InputValidationException(
|
||||
new ErrorResponse.ErrorResponseBuilder().setCode(HttpStatus.SC_BAD_REQUEST).setMessage(msg).build());
|
||||
}
|
||||
if (!geofenceWrapper.getGeoJson().trim().isEmpty()) {
|
||||
if (geofenceWrapper.getGeoJson() != null && !geofenceWrapper.getGeoJson().trim().isEmpty()) {
|
||||
isGeoJsonExists = true;
|
||||
}
|
||||
if ((geofenceWrapper.getLatitude() < -90 || geofenceWrapper.getLatitude() > 90) && !isGeoJsonExists) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user