Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java @ 2789:834b81134b12
Fixed broken crosssection chart creation if no hyks are existing.
flys-artifacts/trunk@4529 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Sun, 27 May 2012 10:47:47 +0000 |
parents | 5e8e42a36a90 |
children | 296b067e17e6 |
comparison
equal
deleted
inserted
replaced
2788:063b784b60b4 | 2789:834b81134b12 |
---|---|
251 ) { | 251 ) { |
252 logger.debug("CrossSectionGenerator.doHyk"); | 252 logger.debug("CrossSectionGenerator.doHyk"); |
253 | 253 |
254 List<HYKFactory.Zone> zones = (List<HYKFactory.Zone>) o; | 254 List<HYKFactory.Zone> zones = (List<HYKFactory.Zone>) o; |
255 | 255 |
256 if (zones.size() == 0) { | 256 if (zones == null || zones.size() == 0) { |
257 logger.debug("CrossSectionGenerator.doHYK: empty zone list received."); | 257 logger.warn("CrossSectionGenerator.doHYK: empty zone list received."); |
258 return; | |
258 } | 259 } |
259 | 260 |
260 // Actual Styling is done in XYChartGenerator. | 261 // Actual Styling is done in XYChartGenerator. |
261 if (visible) { | 262 if (visible) { |
262 addVisibleAnnotations(new FLYSAnnotation(seriesName, null, zones, theme)); | 263 addVisibleAnnotations(new FLYSAnnotation(seriesName, null, zones, theme)); |