Skip to content

Commit

Permalink
Hotfix: Error when creating a new citation in the Journal Citations p…
Browse files Browse the repository at this point in the history
…age #119
  • Loading branch information
rogerdahl committed Nov 8, 2023
1 parent cbf6924 commit 4b95303
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ private void parseDocument(InputStream inputStream)
Node journalCitationIdNode = xpathapi.selectSingleNode(document, "//journalCitationId");
if (journalCitationIdNode != null) {
String journalCitationIdStr = journalCitationIdNode.getTextContent();
setJournalCitationId(Integer.parseInt(journalCitationIdStr));
if (journalCitationIdStr != null && !journalCitationIdStr.isEmpty()) {
setJournalCitationId(Integer.parseInt(journalCitationIdStr));
}
}

Node packageIdNode = xpathapi.selectSingleNode(document, "//packageId");
Expand Down

0 comments on commit 4b95303

Please sign in to comment.