mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-10 12:03:16 +02:00
Merge "Bug 494206 - return null if connection is not open"
This commit is contained in:
commit
e3597c253b
1 changed files with 6 additions and 0 deletions
|
@ -612,6 +612,9 @@ public class JSchConnection implements IRemoteConnectionControlService, IRemoteC
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public IRemoteProcessBuilder getProcessBuilder(List<String> command) {
|
public IRemoteProcessBuilder getProcessBuilder(List<String> command) {
|
||||||
|
if (!isOpen()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
return new JSchProcessBuilder(getRemoteConnection(), command);
|
return new JSchProcessBuilder(getRemoteConnection(), command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -622,6 +625,9 @@ public class JSchConnection implements IRemoteConnectionControlService, IRemoteC
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public IRemoteProcessBuilder getProcessBuilder(String... command) {
|
public IRemoteProcessBuilder getProcessBuilder(String... command) {
|
||||||
|
if (!isOpen()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
return new JSchProcessBuilder(getRemoteConnection(), command);
|
return new JSchProcessBuilder(getRemoteConnection(), command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue