comparison artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixWQCurveGenerator.java @ 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 a56fe3bc6700
children 6650485c2c9b
comparison
equal deleted inserted replaced
7269:6e04d47caee4 7270:a365e587af67
671 addAxisSeries(series, YAXIS.W.idx, visible); 671 addAxisSeries(series, YAXIS.W.idx, visible);
672 } 672 }
673 else { 673 else {
674 addAxisSeries(series, YAXIS.WCm.idx, visible); 674 addAxisSeries(series, YAXIS.WCm.idx, visible);
675 } 675 }
676 if (visible && theme.parseShowPointLabel()) { 676 if (visible && theme != null && theme.parseShowPointLabel()) {
677 RiverAnnotation flysAnno = 677 RiverAnnotation flysAnno =
678 new RiverAnnotation(null, null, null, theme); 678 new RiverAnnotation(null, null, null, theme);
679 flysAnno.setTextAnnotations(textAnnos); 679 flysAnno.setTextAnnotations(textAnnos);
680 addAnnotations(flysAnno); 680 addAnnotations(flysAnno);
681 } 681 }

http://dive4elements.wald.intevation.org