mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 14:03:17 +00:00
Merge pull request #2107 from KingKrimmson/DS-3939-master
DS-3939 OAI-Harvester, skip item and continue if handle is missing
This commit is contained in:
@@ -205,8 +205,11 @@ public class XOAI {
|
|||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
try {
|
try {
|
||||||
Item item = iterator.next();
|
Item item = iterator.next();
|
||||||
|
if (item.getHandle() == null) {
|
||||||
|
log.warn("Skipped item without handle: " + item.getID());
|
||||||
|
} else {
|
||||||
server.add(this.index(item));
|
server.add(this.index(item));
|
||||||
|
}
|
||||||
//Uncache the item to keep memory consumption low
|
//Uncache the item to keep memory consumption low
|
||||||
context.uncacheEntity(item);
|
context.uncacheEntity(item);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user