mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Fix nullpointerexception converting CC RDF bitstream
This commit is contained in:
@@ -306,7 +306,9 @@ public class SubmissionService {
|
||||
result.setRights(creativeCommonsService.getLicenseName(item));
|
||||
|
||||
Bitstream licenseRdfBitstream = creativeCommonsService.getLicenseRdfBitstream(item);
|
||||
result.setFile(converter.toRest(licenseRdfBitstream, Projection.DEFAULT));
|
||||
if (licenseRdfBitstream != null) {
|
||||
result.setFile(converter.toRest(licenseRdfBitstream, Projection.DEFAULT));
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user