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:
Tim Donohue
2018-07-09 09:56:21 -05:00
committed by GitHub

View File

@@ -205,8 +205,11 @@ public class XOAI {
while (iterator.hasNext()) {
try {
Item item = iterator.next();
server.add(this.index(item));
if (item.getHandle() == null) {
log.warn("Skipped item without handle: " + item.getID());
} else {
server.add(this.index(item));
}
//Uncache the item to keep memory consumption low
context.uncacheEntity(item);