mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix NPE.
This commit is contained in:
+1
-1
@@ -278,7 +278,7 @@ public class GeneralCommandLine implements UserDataHolder {
|
||||
if (myRedirectErrorStream) {
|
||||
LOG.error("Launching process with PTY and redirected error stream is unsupported yet");
|
||||
}
|
||||
return PtyProcess.exec(ArrayUtil.toStringArray(commands), env, myWorkDirectory.getPath(), true);
|
||||
return PtyProcess.exec(ArrayUtil.toStringArray(commands), env, myWorkDirectory != null? myWorkDirectory.getPath() : null, true);
|
||||
}
|
||||
|
||||
private Process startProcess(List<String> commands) throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user