mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Bug 494206 - return null if connection is not open
Change-Id: I990c45da0d6369b7f2f7e66741f7c838ad3fa7e1 Signed-off-by: Greg Watson <g.watson@computer.org>
This commit is contained in:
parent
beb118fdf2
commit
4f822ed3d8
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