mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 18:56:02 +02:00
Protect ssh against trivial NPE on shell exit
This commit is contained in:
parent
1785f3e5fb
commit
35d12956f2
1 changed files with 6 additions and 2 deletions
|
@ -168,8 +168,12 @@ public class SshHostShell extends AbstractHostShell implements IHostShell {
|
|||
}
|
||||
|
||||
public void exit() {
|
||||
if (fShellWriter!=null) {
|
||||
fShellWriter.stopThread();
|
||||
}
|
||||
if (fChannel!=null) {
|
||||
fChannel.disconnect();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue