Mercurial > lada > lada-server
changeset 1067:0a44ab47d3d5
A period with end before start is meaningless.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 30 Sep 2016 10:59:18 +0200 (2016-09-30) |
parents | daca5c62356f |
children | 8d1df8f31475 |
files | src/main/java/de/intevation/lada/rest/ProbeService.java |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/ProbeService.java Thu Sep 29 16:48:29 2016 +0200 +++ b/src/main/java/de/intevation/lada/rest/ProbeService.java Fri Sep 30 10:59:18 2016 +0200 @@ -369,6 +369,9 @@ String id = object.get("id").toString(); long start = object.getJsonNumber("start").longValue(); long end = object.getJsonNumber("end").longValue(); + if (start > end) { + return new Response(false, 662, null); + } List<LProbe> proben = factory.create( id, start,