mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-21 21:52:10 +02:00
Guard against null.
This commit is contained in:
parent
90a3eff035
commit
c6df90506c
1 changed files with 3 additions and 1 deletions
|
@ -277,8 +277,10 @@ MIPlugin.getDefault().debugLog(number++ + " " + cmd.toString());
|
|||
|
||||
// Destroy the MI console stream.
|
||||
try {
|
||||
miOutPipe.close();
|
||||
miInPipe = null;
|
||||
if (miOutPipe != null) {
|
||||
miOutPipe.close();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue