mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Bug fixes to REST API as reported by Error Prone
This commit is contained in:
@@ -227,7 +227,7 @@ public class FilteredCollectionsResource extends Resource {
|
||||
}
|
||||
catch (ContextException e)
|
||||
{
|
||||
processException(String.format("Could not read collection %d. %s", collection_id, e.getMessage()), context);
|
||||
processException(String.format("Could not read collection %s. %s", collection_id, e.getMessage()), context);
|
||||
} finally {
|
||||
processFinally(context);
|
||||
}
|
||||
|
@@ -71,7 +71,7 @@ public class Bitstream extends DSpaceObject {
|
||||
}
|
||||
|
||||
//A logo bitstream might not have a bundle...
|
||||
if (bitstream.getBundles() != null & bitstream.getBundles().size() >= 0)
|
||||
if (bitstream.getBundles() != null && !bitstream.getBundles().isEmpty())
|
||||
{
|
||||
if (bitstreamService.getParentObject(context, bitstream).getType() == Constants.ITEM)
|
||||
{
|
||||
|
Reference in New Issue
Block a user