mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-10 03:53:21 +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
|
||||
public IRemoteProcessBuilder getProcessBuilder(List<String> command) {
|
||||
if (!isOpen()) {
|
||||
return null;
|
||||
}
|
||||
return new JSchProcessBuilder(getRemoteConnection(), command);
|
||||
}
|
||||
|
||||
|
@ -622,6 +625,9 @@ public class JSchConnection implements IRemoteConnectionControlService, IRemoteC
|
|||
*/
|
||||
@Override
|
||||
public IRemoteProcessBuilder getProcessBuilder(String... command) {
|
||||
if (!isOpen()) {
|
||||
return null;
|
||||
}
|
||||
return new JSchProcessBuilder(getRemoteConnection(), command);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue