changeset 7270:a365e587af67

Little workaround not to crash uf there is no theme style. TODO: Figure out why the theme style is null at this point.
author Sascha L. Teichmann <teichmann@intevation.de>
date Wed, 09 Oct 2013 13:05:37 +0200
parents 6e04d47caee4
children 9543b768d740
files artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixWQCurveGenerator.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixWQCurveGenerator.java	Wed Oct 09 12:46:40 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixWQCurveGenerator.java	Wed Oct 09 13:05:37 2013 +0200
@@ -673,7 +673,7 @@
         else {
             addAxisSeries(series, YAXIS.WCm.idx, visible);
         }
-        if (visible && theme.parseShowPointLabel()) {
+        if (visible && theme != null && theme.parseShowPointLabel()) {
             RiverAnnotation flysAnno =
                     new RiverAnnotation(null, null, null, theme);
             flysAnno.setTextAnnotations(textAnnos);

http://dive4elements.wald.intevation.org