Skip to content

Commit 7668891

Browse files
committed
misc - null check
1 parent aa898d4 commit 7668891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scouter.common/src/main/java/scouter/lang/counters/CounterEngine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ public ArrayList<String> getAllCounterList() {
277277
while (types.hasMoreElements()) {
278278
ObjectType obj = types.nextElement();
279279
scouter.lang.Counter[] counters = obj.listCounters();
280-
if(counters == null) return null;
280+
if(counters == null || counters.length == 0) continue;
281281
for (scouter.lang.Counter counter : counters) {
282282
if (counter.isAll()) {
283283
list.add(obj.getName() + ":" + counter.getDisplayName() + ":" + counter.getName());

0 commit comments

Comments
 (0)