Skip to content

Commit

Permalink
Fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzxu-crm committed Aug 30, 2024
1 parent bde314e commit b7176e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void apply(MetricAggregate agg, DataPoint m, int now)
return;
}
AggregateFunction f = metrics.computeIfAbsent(key, k -> AggregateFunction.create(k, agg.getAggregationMethod()));
if (m.name.startsWith("pod222.ecom.bjmr.bjmr_prd") && m.name.endsWith("number-of-filters.max")) {
if (m.name != null && m.name.startsWith("pod222.ecom.bjmr.bjmr_prd") && m.name.endsWith("number-of-filters.max")) {
log.warn("============");
log.warn("Received metrics " + m.name);
log.warn(f.getType() + " " + agg.getAggregationMethod().name() + " " + key);
Expand Down

0 comments on commit b7176e4

Please sign in to comment.