poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cen...@apache.org
Subject svn commit: r1834412 - /poi/trunk/src/ooxml/testcases/org/apache/poi/xdgf/extractor/TestXDGFVisioExtractor.java
Date Tue, 26 Jun 2018 10:12:52 GMT
Author: centic
Date: Tue Jun 26 10:12:52 2018
New Revision: 1834412

URL: http://svn.apache.org/viewvc?rev=1834412&view=rev
Log:
Gracefully close resources in test if first line in setup causes a problem

Modified:
    poi/trunk/src/ooxml/testcases/org/apache/poi/xdgf/extractor/TestXDGFVisioExtractor.java

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xdgf/extractor/TestXDGFVisioExtractor.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xdgf/extractor/TestXDGFVisioExtractor.java?rev=1834412&r1=1834411&r2=1834412&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xdgf/extractor/TestXDGFVisioExtractor.java
(original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xdgf/extractor/TestXDGFVisioExtractor.java
Tue Jun 26 10:12:52 2018
@@ -43,7 +43,9 @@ public class TestXDGFVisioExtractor {
     
     @After
     public void closeResoures() throws IOException {
-        xml.close();
+        if(xml != null) {
+            xml.close();
+        }
         pkg.close();
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message