mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-14 05:23:14 +00:00
77817: Add subject null check
This commit is contained in:
@@ -160,7 +160,8 @@ public class IndexEventConsumer implements Consumer {
|
||||
|
||||
// If the event subject is a Collection and the event object is an Item,
|
||||
// also update the object in order to index mapped/unmapped Items
|
||||
if (subject.getType() == Constants.COLLECTION && object.getType() == Constants.ITEM) {
|
||||
if (subject != null &&
|
||||
subject.getType() == Constants.COLLECTION && object.getType() == Constants.ITEM) {
|
||||
objectsToUpdate.addAll(indexObjectServiceFactory.getIndexableObjects(ctx, object));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user