Fixed npe
This commit is contained in:
parent
1e249cb7a5
commit
4921f61457
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ public interface ClusterMapper {
|
|||
}
|
||||
|
||||
default BigDecimal sumMetrics(Map<String, BigDecimal> metrics) {
|
||||
if (metrics == null) {
|
||||
if (metrics != null) {
|
||||
return metrics.values().stream().reduce(BigDecimal.ZERO, BigDecimal::add);
|
||||
} else {
|
||||
return BigDecimal.ZERO;
|
||||
|
|
Loading…
Add table
Reference in a new issue