mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-26 12:23:59 +08:00
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:
parent
1a32490a09
commit
2828ee690f
@ -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.
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user