NameFinder.java (close): IN, OUT, and PROC can all be null, check for that case and don't deference it.

2005-04-22  Andrew Pinski  <pinskia@physics.uc.edu>

        * gnu/gcj/runtime/NameFinder.java (close): IN, OUT, and PROC can all
        be null, check for that case and don't deference it.

From-SVN: r98573
This commit is contained in:
Andrew Pinski 2005-04-22 17:43:50 +00:00 committed by Andrew Pinski
parent 1a32490a09
commit 2828ee690f
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2005-04-22 Andrew Pinski <pinskia@physics.uc.edu>
* gnu/gcj/runtime/NameFinder.java (close): IN, OUT, and PROC can all
be null, check for that case and don't deference it.
2005-04-22 Sven de Marothy <sven@physto.se>
* java/util/logging/LogManager.java: Reformatted.

View File

@ -86,12 +86,14 @@ public class NameFinder
{
try
{
in.close();
out.close();
if (in != null)
in.close();
if (out != null)
out.close();
}
catch (IOException x) {}
proc.destroy();
if (proc != null)
proc.destroy();
}
}