check for empty lists too

This commit is contained in:
Athou
2015-02-19 08:30:44 +01:00
parent 3b7689975d
commit d1973922cd

View File

@@ -8,6 +8,7 @@ import java.util.List;
import javax.inject.Inject;
import javax.inject.Singleton;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.builder.CompareToBuilder;
import org.hibernate.SessionFactory;
@@ -118,7 +119,7 @@ public class FeedEntryStatusDAO extends GenericDAO<FeedEntryStatus> {
HibernateQuery query = newQuery().from(entry).where(entry.feed.eq(sub.getFeed()));
if (keywords != null) {
if (CollectionUtils.isNotEmpty(keywords)) {
query.join(entry.content, content);
for (FeedEntryKeyword keyword : keywords) {