diff --git a/scouter.common/src/main/java/scouter/lang/counters/CounterEngine.java b/scouter.common/src/main/java/scouter/lang/counters/CounterEngine.java index dc3902219..45777b3dc 100644 --- a/scouter.common/src/main/java/scouter/lang/counters/CounterEngine.java +++ b/scouter.common/src/main/java/scouter/lang/counters/CounterEngine.java @@ -277,7 +277,7 @@ public ArrayList getAllCounterList() { while (types.hasMoreElements()) { ObjectType obj = types.nextElement(); scouter.lang.Counter[] counters = obj.listCounters(); - if(counters == null) return null; + if(counters == null || counters.length == 0) continue; for (scouter.lang.Counter counter : counters) { if (counter.isAll()) { list.add(obj.getName() + ":" + counter.getDisplayName() + ":" + counter.getName());