mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
fix CompilationMXBean may null problem. #1772
This commit is contained in:
@@ -115,6 +115,9 @@ public class JvmCommand extends AnnotatedCommand {
|
||||
}
|
||||
|
||||
private void addCompilation(JvmModel jvmModel) {
|
||||
if (compilationMXBean == null) {
|
||||
return;
|
||||
}
|
||||
String group = "COMPILATION";
|
||||
jvmModel.addItem(group, "NAME", compilationMXBean.getName());
|
||||
if (compilationMXBean.isCompilationTimeMonitoringSupported()) {
|
||||
|
||||
Reference in New Issue
Block a user