Description
In SolrDedupServiceImpl a NullPointerException is thrown while cleaning the dedup index.
Log message:
2026-02-05 13:35:27,594 INFO unknown unknown org.dspace.app.batch.DedupClient @ Updating and Cleaning Index
2026-02-05 13:35:27,721 INFO unknown unknown org.dspace.app.deduplication.service.impl.SolrDedupServiceImpl @ Deleting: b30eb4dd-e909-4c6e-a4a4-303f502152a7
2026-02-05 13:35:27,721 ERROR unknown unknown org.dspace.app.deduplication.service.impl.SolrDedupServiceImpl @ Error cleaning cris deduplication index: Cannot invoke "org.dspace.content.Item.getID()" because "item" is null
java.lang.NullPointerException: Cannot invoke "org.dspace.content.Item.getID()" because "item" is null
at org.dspace.app.deduplication.service.impl.SolrDedupServiceImpl.unIndexContent(SolrDedupServiceImpl.java:533) ~[dspace-api-cris-2024.02.03.jar:cris-2024.02.03]
at org.dspace.app.deduplication.service.impl.SolrDedupServiceImpl.cleanIndex(SolrDedupServiceImpl.java:642) [dspace-api-cris-2024.02.03.jar:cris-2024.02.03]
at org.dspace.app.batch.DedupClient.main(DedupClient.java:157) [dspace-api-cris-2024.02.03.jar:cris-2024.02.03]
The problem is caused by this line where i is null:
|
unIndexContent(context, i); |