Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
17b21f88
Commit
17b21f88
authored
Oct 29, 2017
by
Matija Obreza
Browse files
NPE fixed in BatchRESTService
parent
94c118d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/genesys2/server/service/impl/BatchRESTServiceImpl.java
View file @
17b21f88
...
...
@@ -597,7 +597,7 @@ public class BatchRESTServiceImpl implements BatchRESTService {
UpdateTargets
targets
=
new
UpdateTargets
();
targets
.
addKwsItem
(
TermConstants
.
PASSPORT_DATA
);
savedData
.
stream
().
map
(
a
->
a
.
getDoi
()).
filter
(
doi
->
doi
!=
null
).
forEach
(
doi
->
targets
.
addDoisItem
(
doi
));
if
(
targets
.
getDois
().
size
()
>
0
)
{
if
(
targets
.
getDois
()
!=
null
&&
targets
.
getDois
()
.
size
()
>
0
)
{
try
{
LOG
.
debug
(
"Updating GLIS for {} accessions with DOIs"
,
targets
.
getDois
().
size
());
List
<
UpdatedTarget
>
glisResponse
=
glisGenesysApi
.
registerGenesysAsTarget
(
targets
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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