Skip to content

Commit

Permalink
Fixed bug with formatting function
Browse files Browse the repository at this point in the history
  • Loading branch information
dgildeh committed Dec 24, 2015
1 parent fcddeb8 commit e00a3cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/dataloop/jmx/jmxquery/JMXConnector.java
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ private ArrayList<JMXMetric> getAttribute(JMXMetric attribute, boolean getValues
private void formatMetricName(JMXMetric metric) {

// Check if variable in name
if (metric.getMetric().contains("[")) {
if (metric.getMetric() != null && metric.getMetric().contains("[")) {

Pattern pattern = Pattern.compile("\\[(.+?)\\]");
Matcher matcher = pattern.matcher(metric.getMetric());
Expand Down

0 comments on commit e00a3cd

Please sign in to comment.