mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 18:14:26 +00:00
Bundles length check repair.
This commit is contained in:
@@ -457,9 +457,9 @@ public class ItemsResource extends Resource
|
|||||||
org.dspace.content.Bundle bundle = null;
|
org.dspace.content.Bundle bundle = null;
|
||||||
org.dspace.content.Bitstream dspaceBitstream = null;
|
org.dspace.content.Bitstream dspaceBitstream = null;
|
||||||
Bundle[] bundles = dspaceItem.getBundles("ORIGINAL");
|
Bundle[] bundles = dspaceItem.getBundles("ORIGINAL");
|
||||||
if(bundles.length != 0)
|
if(bundles != null && bundles.length != 0)
|
||||||
{
|
{
|
||||||
bundle = bundles[0];
|
bundle = bundles[0]; // There should be only one bundle ORIGINAL.
|
||||||
}
|
}
|
||||||
if (bundle == null)
|
if (bundle == null)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user