Commit 2828ee69 by Andrew Pinski Committed by Andrew Pinski

NameFinder.java (close): IN, OUT, and PROC can all be null, check for that case…

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
parent 1a32490a
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();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment