diff --git a/dspace-api/src/main/java/org/dspace/subscriptions/SubscriptionEmailNotificationServiceImpl.java b/dspace-api/src/main/java/org/dspace/subscriptions/SubscriptionEmailNotificationServiceImpl.java index 2a30b89af3f5..ab19139e7f9c 100644 --- a/dspace-api/src/main/java/org/dspace/subscriptions/SubscriptionEmailNotificationServiceImpl.java +++ b/dspace-api/src/main/java/org/dspace/subscriptions/SubscriptionEmailNotificationServiceImpl.java @@ -117,6 +117,7 @@ public void perform(Context context, DSpaceRunnableHandler handler, String subsc collectionsItems, items); communityItems.clear(); collectionsItems.clear(); + items.clear(); } } else { //in the end of the iteration