1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-31 12:55:40 +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 // Tell the command shell that we have terminated
shell.terminated(); shell.terminated();
try { try {
inputChannel.close(); if(inputChannel != null) {
inputChannel.close();
}
} catch (IOException ioe) { } catch (IOException ioe) {
/* ignore */ /* ignore */
} }
try { try {
serverOutputStream.close(); if(serverOutputStream != null) {
serverOutputStream.close();
}
} catch (IOException ioe) { } catch (IOException ioe) {
/* ignore */ /* ignore */
} }
try { try {
clientOutputStream.close(); if(clientOutputStream != null) {
clientOutputStream.close();
}
} catch (IOException ioe) { } catch (IOException ioe) {
/* ignore */ /* ignore */
} }