Skip to content

Commit

Permalink
Fix NPE in issn, Fix for #2110
Browse files Browse the repository at this point in the history
  • Loading branch information
Siedlerchr committed Oct 3, 2016
1 parent 816d30c commit dc77ad8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,9 @@ private void addArticleInformation(Map<String, String> fields, List<Object> cont
putIfValueNotNull(fields, FieldName.JOURNAL, journal.getTitle());

ISSN issn = journal.getISSN();
putIfValueNotNull(fields, FieldName.ISSN, issn.getContent());
if (issn != null) {
putIfValueNotNull(fields, FieldName.ISSN, issn.getContent());
}

JournalIssue journalIssue = journal.getJournalIssue();
putIfValueNotNull(fields, FieldName.VOLUME, journalIssue.getVolume());
Expand All @@ -539,6 +541,7 @@ private void addArticleInformation(Map<String, String> fields, List<Object> cont
}
}


private void addElocationID(Map<String, String> fields, ELocationID eLocationID) {
if (FieldName.DOI.equals(eLocationID.getEIdType())) {
fields.put(FieldName.DOI, eLocationID.getContent());
Expand Down

0 comments on commit dc77ad8

Please sign in to comment.