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>
|
2005-04-22 Sven de Marothy <sven@physto.se>
|
||||||
|
|
||||||
* java/util/logging/LogManager.java: Reformatted.
|
* java/util/logging/LogManager.java: Reformatted.
|
||||||
|
|
|
@ -86,12 +86,14 @@ public class NameFinder
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
in.close();
|
if (in != null)
|
||||||
out.close();
|
in.close();
|
||||||
|
if (out != null)
|
||||||
|
out.close();
|
||||||
}
|
}
|
||||||
catch (IOException x) {}
|
catch (IOException x) {}
|
||||||
|
if (proc != null)
|
||||||
proc.destroy();
|
proc.destroy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue