1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-30 20:35:38 +02:00

Merge "Bug 478858 - TelnetProtocol#run() remove null pointer occurrences."

This commit is contained in:
Greg Watson 2015-10-15 09:19:28 -04:00 committed by Gerrit Code Review @ Eclipse.org
commit 2842105e44

View file

@ -359,17 +359,23 @@ public class TelnetProtocol extends Thread implements TelnetCodes {
// Tell the command shell that we have terminated
shell.terminated();
try {
inputChannel.close();
if(inputChannel != null) {
inputChannel.close();
}
} catch (IOException ioe) {
/* ignore */
}
try {
serverOutputStream.close();
if(serverOutputStream != null) {
serverOutputStream.close();
}
} catch (IOException ioe) {
/* ignore */
}
try {
clientOutputStream.close();
if(clientOutputStream != null) {
clientOutputStream.close();
}
} catch (IOException ioe) {
/* ignore */
}