|
@@ -72,7 +72,9 @@ public class RankService {
|
|
|
|
|
|
List<RankItem> sortedItems = new ArrayList<>();
|
|
|
for (String pool : contentPools) {
|
|
|
- sortedItems.addAll(itemMap.get(pool));
|
|
|
+ if (itemMap.containsKey(pool)) {
|
|
|
+ sortedItems.addAll(itemMap.get(pool));
|
|
|
+ }
|
|
|
}
|
|
|
List<Content> contents = CommonCollectionUtils.toList(sortedItems, RankItem::getContent);
|
|
|
log.info("Sort result {}", JSONUtils.toJson(contents));
|