File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/edu/harvard/iq/dataverse/util/bagit Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,8 @@ public JsonObjectBuilder getOREMapBuilder(boolean aggregationOnly) {
130130 if (vs .equals (VersionState .DEACCESSIONED )) {
131131 JsonObjectBuilder deaccBuilder = Json .createObjectBuilder ();
132132 deaccBuilder .add (JsonLDTerm .schemaOrg ("name" ).getLabel (), vs .name ());
133- deaccBuilder .add (JsonLDTerm .DVCore ("reason" ).getLabel (), version .getDeaccessionNote ());
133+ // Reason is supposed to not be null, but historically this has not been enforced (in the API)
134+ addIfNotNull (deaccBuilder , JsonLDTerm .DVCore ("reason" ), version .getDeaccessionNote ());
134135 addIfNotNull (deaccBuilder , JsonLDTerm .DVCore ("forwardUrl" ), version .getDeaccessionLink ());
135136 aggBuilder .add (JsonLDTerm .schemaOrg ("creativeWorkStatus" ).getLabel (), deaccBuilder );
136137
You can’t perform that action at this time.
0 commit comments