|
@@ -227,10 +227,13 @@ public class RecommendService {
|
|
|
map.put("pushFromRank", JSONUtils.toJson(v.getPushFromRank()));
|
|
|
map.put("abExpCode", JSONUtils.toJson(param.getAbExpCodes()));
|
|
|
|
|
|
- long featureTableSize = v.getMetaFeatureMap().entrySet()
|
|
|
- .stream()
|
|
|
- .filter(e -> MapUtils.isNotEmpty(e.getValue()))
|
|
|
- .count();
|
|
|
+ long featureTableSize = 0;
|
|
|
+ if (MapUtils.isNotEmpty(v.getMetaFeatureMap())) {
|
|
|
+ featureTableSize = v.getMetaFeatureMap().entrySet()
|
|
|
+ .stream()
|
|
|
+ .filter(e -> MapUtils.isNotEmpty(e.getValue()))
|
|
|
+ .count();
|
|
|
+ }
|
|
|
map.put("featureTableSize", String.valueOf(featureTableSize));
|
|
|
|
|
|
return map;
|