mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 11:07:06 +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);
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user