arina-ielchiieva commented on a change in pull request #1437: DRILL-6702: Disable CPU Reporting for non-HotSpot JDKs URL: https://github.com/apache/drill/pull/1437#discussion_r213619357
########## File path: common/src/main/java/org/apache/drill/exec/metrics/CpuGaugeSet.java ########## @@ -63,7 +72,7 @@ public OperatingSystemLoad(OperatingSystemMXBean osBean) { @Override public Double getValue() { - return osMXBean.getSystemLoadAverage(); + return (osMXBean != null) ? osMXBean.getSystemLoadAverage(): null; Review comment: What you would need braces here? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services