Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/validation/LMessungValidator.java @ 336:53417b61391c
Fixed validator to avoid NPE.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 28 Aug 2013 15:10:19 +0200 |
parents | 2098db2e8fbd |
children | 02803c0e7bd1 |
comparison
equal
deleted
inserted
replaced
335:fa6ef372d471 | 336:53417b61391c |
---|---|
128 Map<String, Integer> errors = new HashMap<String, Integer>(); | 128 Map<String, Integer> errors = new HashMap<String, Integer>(); |
129 errors.put("lprobe", 604); | 129 errors.put("lprobe", 604); |
130 throw new ValidationException(errors); | 130 throw new ValidationException(errors); |
131 } | 131 } |
132 LProbeInfo probe = list.get(0); | 132 LProbeInfo probe = list.get(0); |
133 if (probe.getProbeentnahmeEnde().after(messung.getMesszeitpunkt())) { | 133 if (probe.getProbeentnahmeEnde() == null || |
134 probe.getProbeentnahmeEnde().after(messung.getMesszeitpunkt())) { | |
134 warnings.put("messzeitpunkt", 661); | 135 warnings.put("messzeitpunkt", 661); |
135 } | 136 } |
136 } | 137 } |
137 } | 138 } |