fixed improper handling of empty list

This commit is contained in:
Sascha Szott
2023-11-14 18:09:27 +01:00
committed by GitHub
parent e460183335
commit ac72aae44b

View File

@@ -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 {