Browse Source
Merge pull request #14398 from irynamatveieva/fix/count-unique-agg-entry
Fixed NPE in aggregation entry
pull/14402/head
Viacheslav Klimov
10 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
1 deletions
-
application/src/main/java/org/thingsboard/server/service/cf/ctx/state/aggregation/function/CountUniqueAggEntry.java
|
|
|
@ -17,12 +17,13 @@ package org.thingsboard.server.service.cf.ctx.state.aggregation.function; |
|
|
|
|
|
|
|
import org.thingsboard.server.common.data.cf.configuration.aggregation.AggFunction; |
|
|
|
|
|
|
|
import java.util.HashSet; |
|
|
|
import java.util.Optional; |
|
|
|
import java.util.Set; |
|
|
|
|
|
|
|
public class CountUniqueAggEntry implements AggEntry { |
|
|
|
|
|
|
|
private Set<String> items; |
|
|
|
private final Set<String> items = new HashSet<>(); |
|
|
|
|
|
|
|
@Override |
|
|
|
public void update(Object value) { |
|
|
|
|