mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +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 {
|
||||
for (Bundle b : itemService.getBundles(item, "ORIGINAL")) {
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user