Mercurial > lada > lada-server
changeset 336:53417b61391c
Fixed validator to avoid NPE.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 28 Aug 2013 15:10:19 +0200 |
parents | fa6ef372d471 |
children | cb47c33b119d |
files | src/main/java/de/intevation/lada/validation/LMessungValidator.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/validation/LMessungValidator.java Wed Aug 28 15:09:45 2013 +0200 +++ b/src/main/java/de/intevation/lada/validation/LMessungValidator.java Wed Aug 28 15:10:19 2013 +0200 @@ -130,7 +130,8 @@ throw new ValidationException(errors); } LProbeInfo probe = list.get(0); - if (probe.getProbeentnahmeEnde().after(messung.getMesszeitpunkt())) { + if (probe.getProbeentnahmeEnde() == null || + probe.getProbeentnahmeEnde().after(messung.getMesszeitpunkt())) { warnings.put("messzeitpunkt", 661); } }