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:
Dominik Stadler 2018-06-26 10:12:52 +00:00
parent 53ae3ba4d1
commit e11b371597
1 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,9 @@ public class TestXDGFVisioExtractor {
@After
public void closeResoures() throws IOException {
xml.close();
if(xml != null) {
xml.close();
}
pkg.close();
}