Skip to content

Commit

Permalink
Export: Fix bug with null ORCID in exported documented, remove ORCID …
Browse files Browse the repository at this point in the history
…if value is null from export
  • Loading branch information
GeoffreyKarnbach authored and ValentinFutterer committed Jan 8, 2025
1 parent aab1697 commit 98e51a1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ private String getContributorPersonIdentifier(Contributor contributor) {
String identifier = null;
Identifier personIdentifier = contributor != null ? contributor.getPersonIdentifier() : null;

if (personIdentifier != null) {
if (personIdentifier != null && personIdentifier.getIdentifier() != null) {
String contactIdentifierId = personIdentifier.getIdentifier();
if (personIdentifier.getIdentifierType().equals(EIdentifierType.ORCID)) {
identifier = "ORCID iD: " + contactIdentifierId;
identifier = "ORCID: " + contactIdentifierId;
}
}

Expand Down

0 comments on commit 98e51a1

Please sign in to comment.