|
@@ -101,7 +101,9 @@ public class RankService {
|
|
|
|
|
|
// 次
|
|
|
pool = contentMap.get(contentPools[1]);
|
|
|
- pool.sort((o1, o2) -> -(o1.getCrawlerViewCount().compareTo(o2.getCrawlerViewCount())));
|
|
|
+ if (CollectionUtils.isNotEmpty(pool)) {
|
|
|
+ pool.sort((o1, o2) -> -(o1.getCrawlerViewCount().compareTo(o2.getCrawlerViewCount())));
|
|
|
+ }
|
|
|
if (CollectionUtils.isNotEmpty(pool)) {
|
|
|
result.add(pool.get(0));
|
|
|
if (result.size() == 1 && pool.size() > 1) {
|