GP-0: fix for 'none' vs blank

This commit is contained in:
d-millar 2023-04-10 23:47:02 +00:00
parent eaf3f32121
commit 36bdc556f0
3 changed files with 6 additions and 6 deletions

View file

@ -85,10 +85,10 @@ public class DbgEngInJvmDebuggerModelFactory implements DebuggerModelFactory {
}
protected void completeCommandLine(List<String> cmd) {
if (!remote.equals("none")) {
if (!remote.equals("none") && !remote.equals("")) {
cmd.addAll(List.of(remote));
}
if (!transport.equals("none")) {
if (!transport.equals("none") && !transport.equals("")) {
cmd.addAll(List.of(transport));
}
}

View file

@ -87,10 +87,10 @@ public class DbgEngGadpDebuggerModelFactory extends AbstractGadpLocalDebuggerMod
cmd.addAll(List.of("-H", host));
cmd.addAll(List.of("-p", Integer.toString(port)));
//cmd.addAll(List.of("-t", transport));
if (!remote.equals("none")) {
if (!remote.equals("none") && !remote.equals("")) {
cmd.addAll(List.of("-r", remote));
}
if (!transport.equals("none")) {
if (!transport.equals("none") && !transport.equals("")) {
cmd.addAll(List.of("-t", transport));
}
}