Commit ba59ee61 authored by Matija Obreza's avatar Matija Obreza
Browse files

Fixed IndexOutOfBoundsException when adding HEADER_SUBTAUTHOR_CHECK

parent aa4e6c04
......@@ -204,7 +204,7 @@ public class TaxonomyProcessServiceImpl implements ProcessService {
if (outputHeaders.contains(ApplicationUtils.HEADER_SUBTAXA)) {
if (!outputHeaders.contains(ApplicationUtils.HEADER_SUBTAUTHOR_CHECK)) {
LOG.debug("Adding {} because it's missing", ApplicationUtils.HEADER_SUBTAUTHOR_CHECK);
outputHeaders.add(outputHeaders.size(), ApplicationUtils.HEADER_SUBTAUTHOR_CHECK);
outputHeaders.add(outputHeaders.indexOf(ApplicationUtils.HEADER_SUBTAUTHOR) + 1, ApplicationUtils.HEADER_SUBTAUTHOR_CHECK);
outputMapping.add(outputHeaders.indexOf(ApplicationUtils.HEADER_SUBTAUTHOR_CHECK) + 1, null);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment