Skip to content

Commit 55a89f2

Browse files
committed
Use Item.ANY instead of null
tested with the production db dump on the items mentions in the issue (11234/1-5537). It was returning: ``` The script has started Item '11234/1-5537' has no handle assigned. ``` because it's dc.identifier.uri.*
1 parent 318c4d5 commit 55a89f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dspace-api/src/main/java/org/dspace/administer/ItemVersionLinker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ private boolean isUUID(String itemID) {
355355
}
356356

357357
private String getHandleRef(Item item) {
358-
return itemService.getMetadata(item, "dc", "identifier", "uri", null)
358+
return itemService.getMetadata(item, "dc", "identifier", "uri", Item.ANY)
359359
.stream()
360360
.findFirst()
361361
.map(MetadataValue::getValue)

0 commit comments

Comments
 (0)