diff --git a/app/src/main/java/uk/ac/ebi/atlas/experimentpage/tooltip/ContrastSummaryController.java b/app/src/main/java/uk/ac/ebi/atlas/experimentpage/tooltip/ContrastSummaryController.java index 6ded26ad..b4a23e08 100644 --- a/app/src/main/java/uk/ac/ebi/atlas/experimentpage/tooltip/ContrastSummaryController.java +++ b/app/src/main/java/uk/ac/ebi/atlas/experimentpage/tooltip/ContrastSummaryController.java @@ -22,7 +22,7 @@ @Scope("request") public class ContrastSummaryController { - private ExperimentTrader experimentTrader; + private final ExperimentTrader experimentTrader; @Inject public ContrastSummaryController(ExperimentTrader experimentTrader) { @@ -44,7 +44,7 @@ public String getTooltipContrastContent(@RequestParam(value = "experimentAccessi throw new IllegalArgumentException("No contrast with ID " + contrastId + " found."); } - ExperimentDesign experimentDesign = differentialExperiment.getExperimentDesign(); + ExperimentDesign experimentDesign = experimentTrader.getExperimentDesign(experimentAccession); ContrastSummary contrastSummary = new ContrastSummaryBuilder() .withExperimentDesign(experimentDesign)