1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 06:02:11 +02:00

Guard against null.

This commit is contained in:
Alain Magloire 2002-08-21 03:59:41 +00:00
parent 90a3eff035
commit c6df90506c

View file

@ -277,8 +277,10 @@ MIPlugin.getDefault().debugLog(number++ + " " + cmd.toString());
// Destroy the MI console stream. // Destroy the MI console stream.
try { try {
miOutPipe.close();
miInPipe = null; miInPipe = null;
if (miOutPipe != null) {
miOutPipe.close();
}
} catch (IOException e) { } catch (IOException e) {
} }
} }