mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Detect dupe: null item ref in ex message
This commit is contained in:
@@ -253,7 +253,7 @@ public class DuplicateDetectionServiceImpl implements DuplicateDetectionService
|
||||
|
||||
// If the item is null or otherwise invalid (template, etc) then throw an appropriate error
|
||||
if (item == null) {
|
||||
throw new ResourceNotFoundException("No such item: " + item);
|
||||
throw new ResourceNotFoundException("Duplicate search error: item is null");
|
||||
}
|
||||
if (item.getTemplateItemOf() != null) {
|
||||
throw new IllegalArgumentException("Cannot get duplicates for template item");
|
||||
|
Reference in New Issue
Block a user