Skip to content

Commit

Permalink
Fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
amontenegro committed Mar 13, 2024
1 parent c20f807 commit 4918a07
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,9 @@ public void mapAtoB(PeerReview a, PeerReviewEntity b, MappingContext context) {
if(WorkType.DISSERTATION.equals(a.getSubjectType())) {
b.setSubjectType(org.orcid.jaxb.model.common.WorkType.DISSERTATION_THESIS.name());
} else {
b.setSubjectType(a.getSubjectType().name());
if(a.getSubjectType() != null) {
b.setSubjectType(a.getSubjectType().name());
}
}
}
});
Expand Down

0 comments on commit 4918a07

Please sign in to comment.