mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 07:23:08 +00:00
Merge pull request #10511 from jameswsullivan/oai-bitstream-null-check
Add bitstream null check to XOAI.java
This commit is contained in:
@@ -112,7 +112,7 @@ public class XOAI {
|
|||||||
try {
|
try {
|
||||||
for (Bundle b : itemService.getBundles(item, "ORIGINAL")) {
|
for (Bundle b : itemService.getBundles(item, "ORIGINAL")) {
|
||||||
for (Bitstream bs : b.getBitstreams()) {
|
for (Bitstream bs : b.getBitstreams()) {
|
||||||
if (!formats.contains(bs.getFormat(context).getMIMEType())) {
|
if (bs != null && !formats.contains(bs.getFormat(context).getMIMEType())) {
|
||||||
formats.add(bs.getFormat(context).getMIMEType());
|
formats.add(bs.getFormat(context).getMIMEType());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user