Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/DischargeTablesOverview.java @ 4227:8138a90a674a
Be more tolerant with empty time intervals in discharge tables while comparing discharge tables.
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 23 Oct 2012 15:46:31 +0200 |
parents | 08b6458909a9 |
children | eab85cf85b10 |
comparison
equal
deleted
inserted
replaced
4226:cb9f22c3553f | 4227:8138a90a674a |
---|---|
149 } | 149 } |
150 | 150 |
151 protected String createSeriesTitle(CallMeta callMeta, DischargeTable dt) | 151 protected String createSeriesTitle(CallMeta callMeta, DischargeTable dt) |
152 throws IllegalArgumentException { | 152 throws IllegalArgumentException { |
153 TimeInterval timeInterval = dt.getTimeInterval(); | 153 TimeInterval timeInterval = dt.getTimeInterval(); |
154 | |
155 if (timeInterval == null) { | |
156 return Resources.format(callMeta, DEFAULT_CHART_SERIES_TITLE); | |
157 } | |
158 | |
154 Date start = timeInterval.getStartTime(); | 159 Date start = timeInterval.getStartTime(); |
155 Date end = timeInterval.getStopTime(); | 160 Date end = timeInterval.getStopTime(); |
156 | 161 |
157 if (start != null && end != null) { | 162 if (start != null && end != null) { |
158 return Resources.format(callMeta, I18N_CHART_SERIES_TITLE, | 163 return Resources.format(callMeta, I18N_CHART_SERIES_TITLE, |