mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 15:33:09 +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) {
|
private String generateBodyMail(Context context, List<IndexableObject> indexableObjects) {
|
||||||
if (indexableObjects == null) {
|
if (indexableObjects == null || indexableObjects.isEmpty()) {
|
||||||
return EMPTY;
|
return EMPTY;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user