mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 12:37:55 +00:00
(fix)(chat):skip null values to avoid NPE (#645)
This commit is contained in:
@@ -102,7 +102,9 @@ public class DictQueryHelper {
|
|||||||
Map<String, Long> valueAndFrequencyPair = new HashMap<>(2000);
|
Map<String, Long> valueAndFrequencyPair = new HashMap<>(2000);
|
||||||
for (Map<String, Object> line : resultList) {
|
for (Map<String, Object> line : resultList) {
|
||||||
|
|
||||||
if (CollectionUtils.isEmpty(line) || !line.containsKey(dimName)) {
|
if (CollectionUtils.isEmpty(line) || !line.containsKey(dimName)
|
||||||
|
|| !line.containsKey(metricName)
|
||||||
|
|| line.get(dimName) == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user