提交 4fba902a authored 作者: noelgrandin's avatar noelgrandin

fix for value may be null on this code path (found by FindBugs)

上级 fd7ad571
...@@ -109,12 +109,14 @@ public class Dump { ...@@ -109,12 +109,14 @@ public class Dump {
} catch (IOException e) { } catch (IOException e) {
writer.println("ERROR: " + e); writer.println("ERROR: " + e);
} finally { } finally {
if (file != null) {
try { try {
file.close(); file.close();
} catch (IOException e) { } catch (IOException e) {
// ignore // ignore
} }
} }
}
writer.println(); writer.println();
writer.flush(); writer.flush();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论