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:
commit
2842105e44
1 changed files with 9 additions and 3 deletions
|
@ -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 */
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue