diff --git a/DataPackageManager/src/edu/lternet/pasta/datapackagemanager/JournalCitation.java b/DataPackageManager/src/edu/lternet/pasta/datapackagemanager/JournalCitation.java index a16e2dfa..beba09cd 100644 --- a/DataPackageManager/src/edu/lternet/pasta/datapackagemanager/JournalCitation.java +++ b/DataPackageManager/src/edu/lternet/pasta/datapackagemanager/JournalCitation.java @@ -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");