Gracefully close resources in test if first line in setup causes a problem
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1834412 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f509d1deae
commit
602b6d451e
@ -43,7 +43,9 @@ public class TestXDGFVisioExtractor {
|
|||||||
|
|
||||||
@After
|
@After
|
||||||
public void closeResoures() throws IOException {
|
public void closeResoures() throws IOException {
|
||||||
xml.close();
|
if(xml != null) {
|
||||||
|
xml.close();
|
||||||
|
}
|
||||||
pkg.close();
|
pkg.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user