Fix NPE with powershell async application launch

This commit is contained in:
crschnick
2025-11-21 15:58:34 +00:00
parent 8b8d774fee
commit db4858e9dc
@@ -201,7 +201,10 @@ public interface ExternalApplicationType extends PrefsValue {
default void launch(CommandBuilder builder) throws Exception {
var location = findExecutable();
builder.add(0, sc -> sc.getShellDialect().fileArgument(location.toString()));
builder.add(0, sc -> {
return sc != null ? sc.getShellDialect().fileArgument(location.toString())
: "\"" + location + "\"";
});
if (detach()) {
ExternalApplicationHelper.startAsync(builder);
} else {