]> source.dussan.org Git - poi.git/commitdiff
[bug-63344] add TempFilePOIFSFileSystem
authorPJ Fanning <fanningpj@apache.org>
Sat, 13 Apr 2019 10:08:55 +0000 (10:08 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sat, 13 Apr 2019 10:08:55 +0000 (10:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1857462 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/poifs/filesystem/TempFilePOIFSFileSystem.java

index 6a7e1f6d687ec93bfb90e1bee4825dd478e420fb..c7145925a2a0c5c7edf133b1d643715a7a41d64b 100644 (file)
@@ -26,7 +26,7 @@ public class TempFilePOIFSFileSystem extends POIFSFileSystem {
     }
 
     public void close() throws IOException {
-        tempFile.delete();
+        if (tempFile != null) tempFile.delete();
         super.close();
     }