1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 10:46:02 +02:00

Protect ssh against trivial NPE on shell exit

This commit is contained in:
Martin Oberhuber 2007-05-11 22:08:30 +00:00
parent 1785f3e5fb
commit 35d12956f2

View file

@ -168,8 +168,12 @@ public class SshHostShell extends AbstractHostShell implements IHostShell {
}
public void exit() {
fShellWriter.stopThread();
fChannel.disconnect();
if (fShellWriter!=null) {
fShellWriter.stopThread();
}
if (fChannel!=null) {
fChannel.disconnect();
}
}
}