changeset 2409:4e82bcd07550

Bugfix: Take care on empty ArtifactAndFacet objects in doAnnotations(). flys-artifacts/trunk@4038 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 10 Feb 2012 16:33:36 +0000
parents 8e2ae8813a06
children 388cd6fc451b
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Fri Feb 10 16:25:27 2012 +0000
+++ b/flys-artifacts/ChangeLog	Fri Feb 10 16:33:36 2012 +0000
@@ -1,3 +1,8 @@
+2012-02-10  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/exports/XYChartGenerator.java: Bugfix: take
+	  care on empty ArtifactAndFacet objects in doAnnotations().
+
 2012-02-10  Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/exports/NormalizedReferenceCurveGenerator.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java	Fri Feb 10 16:25:27 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java	Fri Feb 10 16:33:36 2012 +0000
@@ -987,6 +987,13 @@
         boolean visible
     ){
         logger.debug("doAnnotations");
+        if (aandf == null) {
+            logger.warn(
+                "Facet for Annotations is null. " +
+                "This should never happen!");
+            return;
+        }
+
         Facet facet = aandf.getFacet();
 
         // Add all annotations to our annotation pool.

http://dive4elements.wald.intevation.org