Skip to content

Commit

Permalink
resolve NPE on counters-site.xml normalize
Browse files Browse the repository at this point in the history
  • Loading branch information
gunlee01 committed Nov 9, 2023
1 parent 8bde73c commit 46112c2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,9 @@ public String normalizeCountersXml(String xmlString) throws JAXBException {
if (counters.familys == null) {
counters.familys = new Familys0(new ArrayList<>());
}
if (counters.familys.family == null) {
counters.familys.family = new ArrayList<>();
}
List<Family0> families =
counters.familys.family.stream()
.filter(f -> !f.name.contains("zws-metric."))
Expand Down

0 comments on commit 46112c2

Please sign in to comment.