fix profiler execute make jvm crash problem. close #962

pull/966/head
hengyunabc 5 years ago
parent ad0a6404ba
commit 466fa406a1

@ -266,6 +266,11 @@ public class ProfilerCommand extends AnnotatedCommand {
AsyncProfiler asyncProfiler = this.profilerInstance();
if (ProfilerAction.execute.equals(profilerAction)) {
if (actionArg == null) {
process.write("actionArg can not be empty.\n");
status = 1;
return;
}
String result = execute(asyncProfiler, this.actionArg);
process.write(result);
} else if (ProfilerAction.start.equals(profilerAction)) {

Loading…
Cancel
Save