Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
validator.genesys-pgr.org
Commits
ba59ee61
Commit
ba59ee61
authored
Mar 11, 2019
by
Matija Obreza
Browse files
Fixed IndexOutOfBoundsException when adding HEADER_SUBTAUTHOR_CHECK
parent
aa4e6c04
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/genesys/taxonomy/checker/web/service/impl/TaxonomyProcessServiceImpl.java
View file @
ba59ee61
...
...
@@ -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
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment