Skip to content

Commit

Permalink
misc - null check
Browse files Browse the repository at this point in the history
  • Loading branch information
gunlee01 committed Oct 25, 2017
1 parent aa898d4 commit 7668891
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public ArrayList<String> 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());
Expand Down

0 comments on commit 7668891

Please sign in to comment.