[PATCH] Little workaround not to crash uf there is no theme style. TODO: Figure out why the theme style is null at this point
Wald Commits
scm-commit at wald.intevation.org
Wed Oct 9 13:05:41 CEST 2013
# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1381316737 -7200
# Node ID a365e587af6724abe842d72ecae4b0559b4f4a26
# Parent 6e04d47caee400986a7ba1423d758db0476b6833
Little workaround not to crash uf there is no theme style. TODO: Figure out why the theme style is null at this point.
diff -r 6e04d47caee4 -r a365e587af67 artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixWQCurveGenerator.java
--- 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);
More information about the Dive4elements-commits
mailing list