mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 23:13:10 +00:00
fixed improper handling of empty list
This commit is contained in:
@@ -75,7 +75,7 @@ public class ContentGenerator implements SubscriptionGenerator<IndexableObject>
|
||||
}
|
||||
|
||||
private String generateBodyMail(Context context, List<IndexableObject> indexableObjects) {
|
||||
if (indexableObjects == null) {
|
||||
if (indexableObjects == null || indexableObjects.isEmpty()) {
|
||||
return EMPTY;
|
||||
}
|
||||
try {
|
||||
|
Reference in New Issue
Block a user