# HG changeset patch # User Felix Wolfsteller # Date 1348307847 0 # Node ID 2d2ca7bf70a74128e71d4c641d5f80378cce5a9a # Parent 0623cdf32b3831f0379086ac37fa4cbdec65bc2b Prevent ArrayIndexOutOfBounds-Exception. flys-artifacts/trunk@5569 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 0623cdf32b38 -r 2d2ca7bf70a7 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Sat Sep 22 09:55:01 2012 +0000 +++ b/flys-artifacts/ChangeLog Sat Sep 22 09:57:27 2012 +0000 @@ -1,3 +1,8 @@ +2012-09-22 Felix Wolfsteller + + * src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java: + Prevent ArrayIndexOutOfBounds. + 2012-09-22 Felix Wolfsteller Document issue880 (extrapolation of wkms). diff -r 0623cdf32b38 -r 2d2ca7bf70a7 flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java --- a/flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java Sat Sep 22 09:55:01 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java Sat Sep 22 09:57:27 2012 +0000 @@ -338,7 +338,7 @@ series.setLabel(series.getLabel() + ", " + labelAdd); } } - if (ThemeUtil.parseShowLevel(theme) && lines.points.length >0 + if (ThemeUtil.parseShowLevel(theme) && lines.points.length > 1 && lines.points[1].length > 0) { NumberFormat nf = Formatter.getMeterFormat(this.context); String labelAdd = "W=" + nf.format(lines.points[1][0]) + "NN+m";