This commit is contained in:
Dmitry Trofimov
2013-11-29 03:05:09 +01:00
parent 7a0f6ef847
commit a6aa2bb3a7
@@ -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 {