# HG changeset patch # User Felix Wolfsteller # Date 1332166493 0 # Node ID 804088c2e23a8d6dbc494cf359b4a0512847e853 # Parent 3b6bb1cbf741fa5d8a9e7d915def5990aa39a75b Prevent follow-up errors. flys-artifacts/tags/pre2.7-2012-03-16@4162 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 3b6bb1cbf741 -r 804088c2e23a flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Mon Mar 19 14:13:15 2012 +0000 +++ b/flys-artifacts/ChangeLog Mon Mar 19 14:14:53 2012 +0000 @@ -1,3 +1,11 @@ +2012-03-19 Felix Wolfsteller + + Circumvent follow-up errors. + + * src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java: + Store location where to add to a list to avoid OutOfBounds if a + error occurred previously. + 2012-03-19 Felix Wolfsteller Disable legend entry aggregation in this tag. diff -r 3b6bb1cbf741 -r 804088c2e23a flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java --- a/flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java Mon Mar 19 14:13:15 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java Mon Mar 19 14:14:53 2012 +0000 @@ -479,7 +479,7 @@ * ArtifactAndFacets on the fly (with the same ordering as the passed * ThemeList). * @param themeList ThemeList to create a ArtifactAndFacetList along. - * @param contect The "Blackboard". + * @param context The "Blackboard". */ protected List doBlackboardPass( ThemeList themeList, CallContext context @@ -490,6 +490,7 @@ try { // Collect all ArtifactAndFacets for blackboard pass. + int pivot = 0; for (int i = 0; i < size; i++) { ManagedFacet theme = themeList.get(i); if (theme == null) { @@ -511,7 +512,8 @@ artifactAndFacet.register(context); // Add to themes. - dataProviders.add(i, artifactAndFacet); + dataProviders.add(pivot, artifactAndFacet); + pivot += 1; } } catch (ArtifactDatabaseException ade) {