fix profiler execute make jvm crash problem. close #962

This commit is contained in:
hengyunabc 2019-12-02 20:19:09 +08:00
parent ad0a6404ba
commit 466fa406a1

View File

@ -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)) {