Mercurial > dive4elements > river
changeset 4230:eab85cf85b10
Ignore discharge table without time interval set while discharge tables overview chart creation.
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 23 Oct 2012 15:58:22 +0200 |
parents | 207de712d79d |
children | adcb8aee1910 |
files | flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/DischargeTablesOverview.java |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/DischargeTablesOverview.java Tue Oct 23 15:48:18 2012 +0200 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/DischargeTablesOverview.java Tue Oct 23 15:58:22 2012 +0200 @@ -236,6 +236,12 @@ for (DischargeTable dt : all) { TimeInterval tmp = dt.getTimeInterval(); + if (tmp == null) { + // this should never happen because all discharge tables should + // have a time interval set! + continue; + } + Date start = tmp.getStartTime(); Date stop = tmp.getStartTime();