Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/exports/sq/SQOverviewGenerator.java @ 8225:724081af301c
Pass request document to the context injectors.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Mon, 08 Sep 2014 16:14:43 +0200 |
parents | 1d3d61c8f596 |
children |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/sq/SQOverviewGenerator.java Mon Sep 08 16:06:50 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/sq/SQOverviewGenerator.java Mon Sep 08 16:14:43 2014 +0200 @@ -94,11 +94,6 @@ /* Make sure master is also set in those */ g.setMasterArtifact(master); - if (g == null) { - log.debug("generator is null."); - return; - } - OutputHelper helper = new OutputHelper(master.identifier()); Document collectionAttribute = collection.getAttribute(); @@ -106,7 +101,7 @@ Document cAttr = getAttribute(context, collectionAttribute, name); g.init(name, request, out, context); - helper.doOut(g, name, name, cAttr, context); + helper.doOut(g, name, name, cAttr, context, request); JFreeChart chart = g.generateChart(); chart.removeLegend(); charts.add(chart);